Updated on 2022-09-22 GMT+08:00

Logical Operators

Supported logical operators are:

  • "not": <condition>
  • "allOf": [<condition>, ..., <condition>]
  • "anyOf": [<condition>, ..., <condition>]

not inverts the result of the condition.

allOf evaluates true only if all included conditions are true, and evaluates false as long as one included condition is false.

anyOf evaluates true as long as one included condition is true, and evaluates false if all included conditions are false.

allOf and anyOf both implement short-circuit evaluation. They evaluate the conditions in the subsequent list in sequence.

If the return result of a condition is false, allOf returns false and the subsequent conditions are not calculated.

If the return result of a condition is true, anyOf returns true and the subsequent conditions are not calculated.