How to write an operator if you need to find a word in the text

Hi!
I have a string variable “Textifns” . This variable contains the text. I need to find in this text the word “invoice” and make steps in the program.How the “if” operator has to be registered?
The condition should be such, that if the text contains a word “invoice”, then…

a string variable “SF” contains word “invoice”
I tried

Hi,
you can use .contains() to check if a string contains your required string.

does not allow late binding

you should replace the if condition as
row.ToString.Contains(“SF”)

Replaced, but if goes only one branch “Else”, although the text contains the word

its not possible. if the text contains that word it should go through the then.

Hi,
Remove for each activity and try Textfns.contains(“SF”) in if activity…