If, Elif, and Else are statements in Python.

Syntax Edit

if foo == 5: #Sees if foo is equal to five
    print 'Foo is equal to five!' #If foo is equal to five it prints this
elif foo < 5: #If foo is not equal to five it checks to see if it is less than five
    print 'Foo is less than five!' #If foo is less than five it prints
else: #If foo is not equal to five or less than five it automatically prints
    print 'Foo is greater than five!'

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.