Skip to main content

Logical

Geaflow supports the following logical operations.

OperationDescription
boolean1 OR boolean2Return true if boolean1 is true or boolean2 is true.
boolean1 AND boolean2Return true only if boolean1 is true and boolean2 is true.
NOT booleanReturn the result of a NOT operation for given boolean variable.
boolean IS FALSEReturn true if boolean variable is false. If boolean variable is UNKNOWN, return false.
boolean IS NOT FALSEReturn true if boolean variable is true. If boolean variable is UNKNOWN, return true.
boolean IS TRUEReturn true if boolean variable is true. If boolean variable is UNKNOWN, return false.
boolean IS NOT TRUEReturn true if boolean variable is false. If boolean variable is UNKNOWN, return true.
value1 = value2Return true if value1 is equal to value2.
value1 <> value2Return true if value1 is not equal to value2.
value1 > value2Return true if value1 is greater than value2.
value1 >= value2Return true if value1 is greater than or equal to value2.
value1 < value2Return true if value1 is smaller than value2.
value1 <= value2Return true if value1 is smaller than or equal to value2.
value IS NULLReturn true if value is null.
value IS NOT NULLReturn true if value is not null.
value1 IS DISTINCT FROM value2Return true if value1 is distinct from value2. If both value1 and value2 are null, they are considered equal.
value1 IS NOT DISTINCT FROM value2Return true if value1 is equal to value2. If both value1 and value2 are null, they are considered equal.
value1 BETWEEN value2 AND value3Return true if value1 is greater than or equal to value2 and smaller than value3.
value1 NOT BETWEEN value2 AND value3Return true if value1 is smaller than value2 and greater than or equal to value3.
string1 LIKE string2 [ ESCAPE string3 ]Perform fuzzy matching on the string string1, return true if it matches to pattern string2, and false if it doesn't match.
string1 NOT LIKE string2 [ ESCAPE string3 ]Perform fuzzy matching on the string string1, return false if it matches to pattern string2, and true if it doesn't match.
value IN (value [, value]* )Return true if value is equal to any value in the list.
value NOT IN (value [, value]* )Return true if value is not equal to every value in the list.