Name

&& (logical AND)

Examples
k = 0
for y in range(5, 95, 5):
    k += 1    
    if y > 45 and k % 2 == 0:
        # Set color to red for every other line
        # for all y > 45.
        stroke(color(255, 0, 0))
    else:
        stroke(0)    # Set color to black
    line(30, y, 80, y)
Description
Syntax
expression1 and expression2
Parameters
expression1
expression2
Related or (logical OR)
not (logical NOT)
if
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License