Is Text1 included in Text2?

I am trying to see if %Text1% is included in %Text 2% but I am not getting anywhere.

Trying the simplistic %Text1% < %Text 2% does not work.
Trying to write IsIncluded = (pos(Text1, Text2) > 0) does not either.

Any suggestions ?

Best regards,

Hi Olivier,

You can use the ‘Text Find’ action to search in %Test 2% for any strings matching %Test1%.

Regards, Paul.

Olivier,

As an alternative to Text Find, if you are working in a script event then you should be able to either use VBScript expression (InStr(Text2, Text1) > 0), similar to the one you wrote above or the JScript expression (Text2.indexOf(Text1) > -1), depending on which script language you are using.

Regards,

Angus