Name

Boolean

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 Datatype for the Boolean values True and False. It is common to use boolean values with control statements to determine the flow of a program. The first time a variable is written, it must be declared with a statement expressing its datatype.
Syntax
var = booleanValue
Parameters
varvariable name referencing the value
booleanValueTrue or False
Related True
False
Updated on Tue Jul 11 06:52:23 2017.
Creative Commons License