The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Comparing two strings in flow designers always results to false

Marcio9
Tera Expert

For some reason in flow designer when comparing strings (even if they are equal) always evaluates to false. I tried trimming and changing the case to upper and lower as well, but nothing worked.

find_real_file.png

7 REPLIES 7

Liga
Tera Contributor

I solved, just copy paste value from If condition to condition 1 and magic happened! if wrote with hand, then it shows that string=string, but evaluated false

 

2022-11-30_07-48-05.jpg

Bravo, this helped me. Thanks for sharing. 

 

In my case I was comparing the API status and due to the stupid string comparison bug of flow designer my condition kept on failing. Finally fixed it by copying the exact string from the operations view.

 

Screenshot 2023-01-03 at 8.59.52 PM.png

 

 

and used the same string in the operand of if condition in my flow

Jef DC
Tera Contributor

I foun dthe correct solution.

So apparantly you should use trim() or something else on top of the Variable to check against.

Eg see screenshot.

SringCondition.png

Now it works,.....