like % If statement
Question
Application Type
Reactive

Hello


I have an If condition I need some help with.

I have a Text Variable called "TextVar" and I need to read that variable for a specific character within the TextVar.   

Example.  The If statement...   looking in the TextVar and its text is "eagle" and my If statement needs to see if the letter "G" is within the text

If TextVar like "G"

what is the syntax that I am missing for the IF statement to look to see if the letter "G" is within that text?


Thanks


Dan


Hi,

Try this condition in Your If condition:

If(Index(TextVar,"G")<>-1,True,False)

Hope this Helps.

Thanks

Hello.

You can use the Index() built-in function for that. The function has documentation explaining how to use it.


Best regards

Hi,

Try this condition in Your If condition:

If(Index(TextVar,"G")<>-1,True,False)

Hope this Helps.

Thanks

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.