Difference between revisions of "Complex formulas"

From TempusServa wiki
Jump to navigation Jump to search
old>Admin
old>Admin
Line 14: Line 14:


===== IF statement =====
===== IF statement =====
* Test: Value or expression
* Test:  
** Equal: =  
** First value or expression
** Unequal: !=  
** Operator
** Greater: > (>=)
*** Equal: =  
** Lesser: < (<=)
*** Unequal: !=  
* true/false values
*** Greater: > (>=)
*** Lesser: < (<=)
** Second value or expression
* True/False values
** Value
** Value
** Expression
** Expression

Revision as of 09:42, 22 May 2013

Common operators

  • Add: +
  • Subtract: -
  • Division: /
  • Multiply: *
  • Modulus: %

Mathematical functions

  • Minimum
  • Maximum

Support for statements

IF statement
  • Test:
    • First value or expression
    • Operator
      • Equal: =
      • Unequal: !=
      • Greater: > (>=)
      • Lesser: < (<=)
    • Second value or expression
  • True/False values
    • Value
    • Expression
Examples

Script code

 -

Expression

 -