User Tools

Site Tools


en:if

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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** //compound_statement//\\ +**if** [[booleanexpressions|boolean_expression]] **then** [[compoundstatementprogramsyntax|compound_statement]]\\ 
-**if** [[booleanexpressions|boolean_expression]] **then** //compound_statement// **else** //compound_statement// \\+**if** [[booleanexpressions|boolean_expression]] **then** [[compoundstatementprogramsyntax|compound_statement]] **else** [[compoundstatementprogramsyntax|compound_statement]] \\
  
 ---- ----
 **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 //booleanexpr//, when true the //statement(s)// following the then is executed, otherwise execution continues on the next line. There are also two forms of a multi-line if statement, one with a true block and one with a true and a false block of code to execute.+A single line IF evaluates //booleanexpr//, when true the [[programsyntax|statement(s)]] following the then is executed, otherwise execution continues on the next line. There are also two forms of a multi-line if statement, one with a true block and one with a true and a false block of code to execute.
 ==== Example ==== ==== Example ====
 <code> <code>
en/if.txt · Last modified: 2020/03/02 22:43 by 122.160.95.11