Logical Operators

Logical NOT

Negates the logical value of its following boolean value.

Truth Table:

parameter 1 Output
true false
false true

param1 = true
not #param1
false

param1 = false
not #param1
true

Logical AND

Logical conjunction connects two boolean values by the operator and.

Truth Table:

parameter 1 parameter 2 Output
true true true
true false false
false true false
false false false

param1 = true
param2 = true
#param1 and #param2
true

param1 = true
param2 = false
#param1 and #param2
false

Logical OR

Logical disjunction connects two boolean values by the operator or.

Truth Table:

parameter 1 parameter 2 Output
true true true
true false true
false true true
false false false

param1 = true
param2 = false
#param1 or #param2
true

param1 = false
param2 = false
#param1 or #param2
false

Logical XOR

Exclusive or, i.e. "one but not both". Equivalent to (a or b) and not (a and b).

Truth Table:

parameter 1 parameter 2 Output
true true false
true false true
false true true
false false false