Name

not (logical NOT)

Examples
a = False
if not a:
    rect(30, 20, 50, 50)
a = True
if a:
    line(20, 10, 90, 80)
    line(20, 80, 90, 10)
Description Inverts the Boolean value of an expression. Returns True if the expression is False and returns False if the expression is True. If the expression (a>b) evaluates to True, then not(a>b) evaluates to False.
Syntax
not expression
Parameters
expressionany valid expression
Related or (logical OR)
&& (logical AND)
if
Updated on Tue Jul 11 06:52:24 2017.
Creative Commons License