pythonreference.com
search statements, functions, methods, exceptions*
show categories
'elif' statement
if the prior 'if' is False and this test is True, enter the block
var = 3
if var > 0:
print('higher')
elif var < 0:
print('lower')
print('continuing...')
initialize int
if int is greater than 0:
print str
otherwise if int is less than 0:
print str
1) if all if and elif tests in the chain above this statement are False, and the test in this statement is True, enter the block 2) if all if and elif tests in the chain above this statement are True, skip to below the block 3) if the test in this statement is False, skip to below the block 4) when the end of the block is reached, continue to the next line