Difference between revisions of "Complex formulas"

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


==== Mathematical functions ====
==== Mathematical functions ====
* Minimum
* Absolute: abs
* Maximum
* Minimum: max
* Maximum: min
* Power: pow
* Square root: sqrt
* Logarithms: log log10 exp


==== Support for statements ====
==== Support for statements ====

Revision as of 09:48, 22 May 2013

Common operators

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

Mathematical functions

  • Absolute: abs
  • Minimum: max
  • Maximum: min
  • Power: pow
  • Square root: sqrt
  • Logarithms: log log10 exp

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

 -