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 Feb 27 14:07:12 2024.

If you see any errors or have comments, please let us know.

Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

AltStyle によって変換されたページ (->オリジナル) /