cancel
Showing results for 
Search instead for 
Did you mean: 

How to compare two strings with each other?

Former Member
0 Kudos

Hello,

I have modeled a formular which has a radio group and a button. Furthermore, I have one result state corresponding to each option in the radio group.

In order to determine which result state actually is to be reached I want to attach a condition to each flow to the result states that tests which option has been chosen.

Which operator can I use for writing these conditions? I have tried the "like" operator as well as the "==" operator but neither seems to work.

I have written something like:

=LIKE(@decision, 'option a')

as well as:

=(@decision=='option a')

What am I doing wrong here?

Thank you very much

Alexander

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Alexander,

Could this be an Upper/Lower case issue.

I tried the following expression

=(@TXT1=="opt a")

and it worked.

If you want your expression to ignore case you should use this expression:

=(UPPER(@TXT1)==UPPER("opt a"))

In case you're not sure what is the exact string in the field (@decision) you can always use the PROMPT action to display the field's value.

Regards,

Udi

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks for your quick answer. At least I can be sure that that should work.

I guess I have modeled the result states in a wrong way.

Best regards

Alexander