User Tools

Site Tools


en:ifthen

Differences

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

Link to this comparison view

Next revision
Previous revision
en:ifthen [2016/01/01 22:41]
127.0.0.1 external edit
en:ifthen [2016/08/12 13:01]
admin
Line 1: Line 1:
 ===== If / Then ===== ===== If / Then =====
 ==== Format ==== ==== Format ====
-**if** //booleanexpr// **then** //statement//+**if** //booleanexpr// **then** [[programsyntax|statement]]
 ---- ----
 **if** //booleanexpr// **then**\\ **if** //booleanexpr// **then**\\
-(tab)//statement(s)//\\+(tab)[[programsyntax|statement(s)]]\\
 **end if** **end if**
 ---- ----
 **if** //booleanexpr// **then**\\ **if** //booleanexpr// **then**\\
-(tab)//statement(s)//\\+(tab)[[programsyntax|statement(s)]]\\
 **else**\\ **else**\\
-(tab)//statement(s)//\\+(tab)[[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/ifthen.txt ยท Last modified: 2020/02/28 10:46 (external edit)