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 |
| ||
Related |
or (logical OR) && (logical AND) if |
Updated on Mon Sep 21 15:53:25 2020.
If you see any errors or have comments, please let us know.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License