This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
en:if [2016/08/13 12:52] admin |
en:if [2016/08/13 12:53] admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== If / Then (Statement) ===== | ===== If / Then (Statement) ===== | ||
==== Format ==== | ==== Format ==== | ||
+ | **if** [[booleanexpressions|boolean_expression]] **then** [[programsyntax|statement]]\\ | ||
+ | **if** [[booleanexpressions|boolean_expression]] **then** [[programsyntax|statement]] **else** [[programsyntax|statement]] \\ | ||
**if** [[booleanexpressions|boolean_expression]] **then** [[compoundstatementprogramsyntax|compound_statement]]\\ | **if** [[booleanexpressions|boolean_expression]] **then** [[compoundstatementprogramsyntax|compound_statement]]\\ | ||
**if** [[booleanexpressions|boolean_expression]] **then** [[compoundstatementprogramsyntax|compound_statement]] **else** [[compoundstatementprogramsyntax|compound_statement]] \\ | **if** [[booleanexpressions|boolean_expression]] **then** [[compoundstatementprogramsyntax|compound_statement]] **else** [[compoundstatementprogramsyntax|compound_statement]] \\ |