The CreatorCon Call for Content is officially open! Get started here.

Flow Designer "if" condition not working

TT3
Kilo Guru

Please see below "if" condition execution scenario in one of the flow. As you can see, it have been evaluated as false even though the the value matches variable. (Check the runtime value column) I tried with "IS" operator too but it didn't work.

 

TT3_0-1668701232353.png

 

Below screenshot of using "IS" operator:

TT3_0-1668701362240.png

 

Any idea why? (note: it was working before I upgraded to Tokyo)

1 ACCEPTED SOLUTION

TT3
Kilo Guru

I can't believe, but it seems Flow doesn't like numbers mix with characters. I changed the value from "Analyst4" to "afour" and it is working as expected. I don't have any adjective for this. But will avoid using Flow in future for sure.

View solution in original post

6 REPLIES 6

SARDESAI _S
Tera Contributor

I also encountered a similar issue where I was using an IF statement to compare two string field values in a Subflow.

Although both strings appeared identical, the condition consistently evaluated to false.

After exploring multiple threads without a clear solution, I created a Flow Action as a workaround.

Inside the Flow Action, I used a Script step to compare the two string values and returned a boolean result.

I then used this boolean in the main flow's IF condition, which worked as expected.

Imagine having to do that just to test a string! I discovered recently that TRIGGERS for a flow did the same thing, and completely ignored the empty values that it was suppose to skip and ran the flow regardless.  

Personally, anyone using flow designer as a developer without trying to use it as a shell for process and integrations only, I'd question their skill set, and def. would not hire them.  Don't care what direction SN is trying to force, as this new direction has caused more headaches, pollution, and bloated garbage than ever before.