Ideally, you’ll want String B to be split into an array of strings and check if any of those strings are in String A. Here’s an example:
StringA = "The quick brown fox jumped over the lazy dog.", and
StringB = "fun what that over at snake", then you can follow these steps.
StringB at spaces into variable
StringBArr = StringB.Split(" ").
2.) Create a boolean called
StringFound set to
False at this point.
3.) Start a For Each loop over
SubStr is an element in
4.) Inside the loop, add an If statement with condition
5.) If the condition is
StringFound = True and then break from the loop with a Break activity.
If the no substring is found to match within
StringFound will remain
False as defined before the loop started. Otherwise, it will be set to