Difference between revisions of "TLO:If"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 11: Line 11:
 
* [[LavishScript:Mathematical Formulae|Mathematical Formulae]]
 
* [[LavishScript:Mathematical Formulae|Mathematical Formulae]]
 
* [[LavishScript:Top-Level Objects|Top-Level Objects]]
 
* [[LavishScript:Top-Level Objects|Top-Level Objects]]
 +
 +
[[Category:LavishScript]]

Revision as of 21:32, 25 May 2005

Description

Allows conditional usage of different strings. The condition is evaluated as a mathematical formula, after which the result is tested to mean either true (not equal to zero) or false (equal to zero). If the condition evaluates to true, the "value when true" is used. If not, the "value when false" is used, if any.

Forms

  • string If[condition,value when true]
  • string If[condition,value when true,value when false]

Examples

See Also