if statements (asimple if statement [simple if statements (page )if condition indentedstatementblockfortruecondition if the condition is truethen do the indented statement block if the condition is not truethen skip it (bif-else statement [if-else statements (page )if condition indentedstatementblockfortruecondition elseindentedstatementblockforfalsecondition if the condition is truethen do the first indented block only if the condition is not truethen skip the first indented block and do the one after the else(cthe most general syntax for an if statementif-elif-else [multiple tests and if-elif statements (page )if condition indentedstatementblockfortruecondition elif condition indentedstatementblockforfirsttruecondition elif condition indentedstatementblockforfirsttruecondition elif condition indentedstatementblockforfirsttruecondition elseindentedstatementblockforeachconditionfalse the ifeach elifand the final else line are all aligned there can be any number of elif lineseach followed by an indented block (three happen to be illustrated above with this construction exactly one of the indented blocks is executed it is the one corresponding to the first true conditionorif all conditions are falseit is the block after the final else line (dif-elif [multiple tests and if-elif statements (page )the elseclause above may also be omitted in that caseif none of the conditions is trueno indented block is executed while statements [simple while loops (page )while condition indentedstatementblock more on flow of control