Name

Conditional Expressions

Examples
s = 0
for i in range(5, 100, 5):
    s = 0 if i < 50 else 255
    stroke(s)
    line(30, i, 80, i)
Description
Syntax
expression1 if test else expression2
Parameters
test
expression1
expression2
Related if
else
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License