Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Flow Designer IF statement wrongly evaluating as True!

Community Alums
Not applicable

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
Kilo Patron

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

Community Alums
Not applicable

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.