Skip to content

Truth Table Explanation


The truth table for likeTrue and likeFalse is as follows:

Value Type Evaluated 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

The condition will only be evaluated as true and trigger an alert in the specific scenarios listed above; other scenarios will not match, and no alert will be triggered.

Feedback

Is this page helpful? ×