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

palanikumar
Giga Sage

Hi,

I faced same problem in my instance. It started working after I did the following: (Note - it is not logical but works)

1) Change condition to "is not" Executive -> Save the flow -> test the flow
2) Revert back the condition to "is" Executive -> Save the flow -> test the flow

Thank you,

Palani

Thank you,
Palani

Soeren
Tera Contributor

Unfortunately, I also don't have a solution but a similar problem:

In a Flow I want to compare a string Field against a String "DE" but if it has the same value, it always results in false.

Soeren_1-1665747906320.png

It doesn't matter if I e.g., convert the letters of both strings in lower ones. I also rebuild the whole flow, but no difference.

The funny thing is that in other flows we already implemented the same method and it worked.

 

This is the field:

 

Soeren_0-1665747693409.png

 

So, if anyone has an idea, I would be very grateful 🙂

Community Alums
Not applicable

Hi,

 

I'm just wondering - can you copy an existing flow that works, and edit that? I know that the designer tends to remove data pills from the flow when you start changing things, but it's just a thought.

I have the same issue, and I tried reversing the logic to 'is not' (and saving) and then back to 'is', and it made no difference.
I'm going to keep looking for answers. I'll rewrite the action that outputs the string I'm trying to compare, to output a boolean instead.
Failing that, a Business rule might have to be written 😐

The switch to 'is not' and back unfortunately also didn't help here.

We also worked around the problem and did it with a boolean instead^^'