Write, Bureaucrats, Administrators
4,332
edits
mNo edit summary |
mNo edit summary |
||
Line 75: | Line 75: | ||
=== Logical functions === | === Logical functions === | ||
; if(,,): returns one value of a logical expression if TRUE (not equal to 0.0) and another if it is FALSE (equal to 0.0)<br/>For example, if(#{remaining} == 0, 'Done', 'Incomplete') | :; if(,,): returns one value of a logical expression if TRUE (not equal to 0.0) and another if it is FALSE (equal to 0.0)<br/>For example, if(#{remaining} == 0, 'Done', 'Incomplete') | ||
; switch(,,,): accepts an expression, result/Value pairs, and a default value, and determines the final result based on selecting among the paired results to identify the paired value (or else the default) to be used.<br/>For example, switch(#{count}, 1, 'One', 2, 'Two', 'Many') | :; switch(,,,): accepts an expression, result/Value pairs, and a default value, and determines the final result based on selecting among the paired results to identify the paired value (or else the default) to be used.<br/>For example, switch(#{count}, 1, 'One', 2, 'Two', 'Many') | ||
== Link to Entry == | == Link to Entry == |