Difference between revisions of "Complex formulas"
Jump to navigation
Jump to search
old>Admin |
old>Admin |
||
Line 14: | Line 14: | ||
===== IF statement ===== | ===== IF statement ===== | ||
Syntax | Syntax used matches JavaScript inline IF statments | ||
( Value1 Operator Value2 ? ValueIfTrue : ValueIfFalse ) | ( Value1 Operator Value2 ? ValueIfTrue : ValueIfFalse ) | ||
* Test | * Test | ||
** First value or expression | ** First value or expression |
Revision as of 09:44, 22 May 2013
Common operators
- Add: +
- Subtract: -
- Division: /
- Multiply: *
- Modulus: %
Mathematical functions
- Minimum
- Maximum
Support for statements
IF statement
Syntax used matches JavaScript inline IF statments
( Value1 Operator Value2 ? ValueIfTrue : ValueIfFalse )
- Test
- First value or expression
- Operator
- Equal: =
- Unequal: !=
- Greater: > (>=)
- Lesser: < (<=)
- Second value or expression
- True/False values
- Value
- Expression
Examples
Script code
-
Expression
-