Difference between revisions of "TLO:If"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
== Description == | == 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. | 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 == | ||
+ | *[[DataType:string|string]] '''If['''condition''','''value when true''']''' | ||
+ | *[[DataType:string|string]] '''If['''condition''','''value when true''','''value when false''']''' | ||
== Examples == | == Examples == | ||
− | |||
== See Also == | == See Also == | ||
* [[LavishScript:Mathematical Formulae|Mathematical Formulae]] | * [[LavishScript:Mathematical Formulae|Mathematical Formulae]] |
Revision as of 06:37, 26 February 2005
Contents
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.