Flow Designer IF statement wrongly evaluating as True!

Daniel Gleason
Giga Expert

Hello,

I am building a flow and is appears to me as if this if statement is wrongly evaluating as true. Here are two examples, one when comparing sys_ids and the other comparing strings, "Start" and "Stop."

find_real_file.png

 

find_real_file.png

 

In both cases, since the sys_ids match (the one starting in 1dd...) and the "Start" matches "Start" it should evaluate as false. Below is the action for the strings, and the sys_id action is the same but with hardcoded sys_ids. 

 

find_real_file.png

 

find_real_file.png

 

Am I missing something obvious? or is this IF statement truly not working?

 

Thanks,
Dan

1 ACCEPTED SOLUTION

Uncle Rob
Kilo Patron

find_real_file.png

"Does start != start"?   FALSE
New Query:  "Does start != stop"?  TRUE

Therefore TRUE

So this looks like its evaluating correctly.

View solution in original post

4 REPLIES 4

Uncle Rob
Kilo Patron

find_real_file.png

"Does start != start"?   FALSE
New Query:  "Does start != stop"?  TRUE

Therefore TRUE

So this looks like its evaluating correctly.

Brian Lancaster
Tera Sage

When doing two not statements you need to use and instead of or. 

Daniel Gleason
Giga Expert

Thank you guys, makes sense!  Too many hours in front of the computer screen for me perhaps on this one...

All devs are entitled to 1 double-negative confusion per dev cycle.