Conditional

A conditional performs different actions depending on whether a condition is true or false.

Python Example

# Set a variable.
level = 4

# Take this action if the level variable is greater than 5.
if level > 5:
    print('Alert Level: ' + str(level))

# Take this action if the level variable is less than or equal to 4.
if level <= 4:
    print('No Alert')