panSL language reference. Table of contents.

Operators are used in Formulas.

Note: As of April 2012 evaluation of Formulas is only at alpha-stage (still under development) in the panSL Implementations AgoRapide and MyLittleDatabase.

Operators are evaluated from left to right only.

Operator precedence is not supported at the moment, that is

2 + 3 * 4evaluates to 20 not 14 (in other words multiplication and division is not done before addition and subtraction)

Use parantheses to correct this, that is use

2 + (3 * 4)if a result of 14 is desired.

Field name | Description |

Addition | The Addition-operator + may be used on both strings and numbers.
Example: results in 4. results in "22". Behaviour when adding a number and a string is not currently defined. The StringFunction Concat may be used instead of Addition to ensure string-concatenation in such cases. |

Division |
Example: results in 2.5. |

IsEqualTo |
Example: results in "true". results in "false". For strings the function string1.Equals(string2) may be used.See also function If and IfNot. |

IsGreaterThan |
Example: results in "true". results in "false". See also function If and IfNot. |

IsLessThan |
Example: results in "true". results in "false". See also function If and IfNot. |

Multiplication |
Example: results in 10. |

Subtraction |
Example: results in 3. |

panSL language reference. Table of contents.

More samples available at http://panSL.org/samples/.

Last updated 2012-05-02