This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:if [2016/08/12 12:27] admin |
en:if [2016/08/13 12:52] admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== If / Then (Statement) ===== | ===== If / Then (Statement) ===== | ||
==== Format ==== | ==== Format ==== | ||
- | **if** [[booleanexpressions|boolean_expression]] **then** | + | **if** [[booleanexpressions|boolean_expression]] **then** |
- | **if** [[booleanexpressions|boolean_expression]] **then** | + | **if** [[booleanexpressions|boolean_expression]] **then** |
---- | ---- | ||
**if** [[booleanexpressions|boolean_expression]] **then**\\ | **if** [[booleanexpressions|boolean_expression]] **then**\\ | ||
- | //statement(s)//\\ | + | [[programsyntax|statement(s)]]\\ |
**end if** | **end if** | ||
---- | ---- | ||
**if** [[booleanexpressions|boolean_expression]] **then**\\ | **if** [[booleanexpressions|boolean_expression]] **then**\\ | ||
- | //statement(s)//\\ | + | [[programsyntax|statement(s)]]\\ |
**else**\\ | **else**\\ | ||
- | //statement(s)//\\ | + | [[programsyntax|statement(s)]]\\ |
**end if** | **end if** | ||
==== Description ==== | ==== Description ==== | ||
- | A single line IF evaluates // | + | A single line IF evaluates // |
==== Example ==== | ==== Example ==== | ||
< | < |