Tinderbox v9 Icon


Code Type: 

Code Scope of Action: 

Code First Added: 

Code Altered: 

 Conditional Mark-up   [other codes of this type]

 n/a   [codes with similar scope]




If the condition specified in ^if( condition )^ is not true, then export everything from the ^else^ statement to the ^endif^.


^if($Width>5)^The $Width is greater than 5.^else^The $Width is 5.0 or less.^endIf^ 

…which, depending on the outcome exports out either the string "The $Width is greater than 5." or the string "The $Width is 5.0 or less."

Note there is no extended branching form, such as an 'else if' method. For that, nest further ^if()^ tests in the negative result branch (i.e. after the ^else^).