Logical operation
and expression1 expression2
expression1 && expression2
or expression1 expression2
expression1 || expression2
not expression
!expression
xor expression1 expression2
Returns the result of logical conjunction (and
), disjunction
(or
), exclusive disjunction
(xor
) of expr1 and expr2 or
negation (not
) of expressions.
Example:
print and 1 > 0 number? 5
print xor 1 > 0 number? 5
print or true false
while not repcount = 4 [print repcount]
Output:
True
False
True
1
2
3
See also:
Table of Content