Skip to content

Truth Table Explanation


The truth table for likeTrue and likeFalse is as follows:

Value Type Determined as Example
true Boolean true true
false Boolean false false
Numbers greater than 0 Integer, Float true 1
Numbers less than or equal to 0 Integer, Float false 0
Strings that convert to lowercase as true String true true
Strings that convert to lowercase as "yes" String true "Yes"
Strings that convert to lowercase as "ok" String true "OK"
Strings that convert to lowercase as "on" String true "ON"
Strings that convert to lowercase as "1" String true "1"
Strings that convert to lowercase as "o" String true "o"
Strings that convert to lowercase as "y" String true "y"
Strings that convert to lowercase as false String false false
Strings that convert to lowercase as "no" String false "No"
Strings that convert to lowercase as "ng" String false "NG"
Strings that convert to lowercase as "off" String false "OFF"
Strings that convert to lowercase as "0" String false "0"
Strings that convert to lowercase as "x" String false "x"
Strings that convert to lowercase as "n" String false "n"
Note

Only scenarios that meet the above conditions will be determined as true or false, other scenarios do not match, meaning no alerts will be generated.

Feedback

Is this page helpful? ×