Contains operator in RPAx

contains

#1

Good day

Why does the contains if-statement not work?

I have used it in a prior version (1.1.9) but now if you use it the field of the variable in the statement stays light red?

c1

Regards
Gerhard


#2

Gerhard, are you using a string variable in the first box?
If yes, than it causes the error. Contains currently only works with List variables. We will fix it soon, though, so it will be possible to use it with strings, too.
https://kb.workfusion.com/display/RPAe/Conditions

Try using a regular expression instead: .*${variable}.* . This should work the same as “contains”.