Operators

Arithmetic operators

Addition

Adds the number on the left to the number on the right.

Usage

<number> + <number>

Examples

ExpressionResult
10 + 20.530.5
-5 + 61

Subtraction

Subtracts the number on the right from the number on the left.

Usage

<number> - <number>

Examples

ExpressionResult
10 - 20.5-10.5
6 - 51

Multiplication

Multiplies the number on the left with the number on the right.

Usage

<number> * <number>

Examples

ExpressionResult
10 * 20.5205
-5 * 6-30

Division

Divides the number on the left with the number on the right.

Usage

<number> / <number>

Examples

ExpressionResult
10 / -20.5-0.4878
20 / 45

Parentheses

Used to determine the order of operations.

Usage

(<number> + <number>) * <number>

Examples

ExpressionResult
2 * (5 + 1)12
3 * -(5+1) + 2-16

Unary (Negative)

Inverts the sign of a number.

Usage

-<number>

Examples

ExpressionResult
-5-5
--55

Unary (Positive)

Doesn't change the value of a number. This only exists as a complement to the Unary (Negative) operator.

Usage

+<number>

Examples

ExpressionResult
+55
+-5-5

Comparison operators

Equality

Returns true if the value on the left is equal to the value on the right.

This operator is compatible with the following data types:

  • Number
  • Boolean
  • String
  • DateTime
  • GUID

Usage

<value_one> == <value_two>

Examples

ExpressionResult
2 == 2true
"abc" == "def"false
newDate(1, 2, 2021) == newDate(1, 2, 2021)true
true == falsefalse

Inequality

Returns true if the value on the left is not equal to the value on the right.

This operator is compatible with the following data types:

  • Number
  • Boolean
  • String
  • DateTime
  • GUID

Usage

<value_one> != <value_two>

Examples

ExpressionResult
2 != 2false
"abc" != "def"true
newDate(1, 2, 2021) != newDate(1, 2, 2021)false
true != falsetrue

Logical operators

Negation

Inverts the value of a boolean value, turning true into false and false into true.

Usage

!<boolean>

Examples

ExpressionResult
!truefalse
!falsetrue
!(2 == 2)false

Logical OR operator

Returns true if the condition on the left or the condition on the right is true.

Usage

<condition_one> || <condition_two>

Examples

ExpressionResult
true || falsetrue
false || falsetrue
(2 == 2) || falsetrue

Logical AND operator

Returns true if the condition on the left and the condition on the right is true.

Usage

<condition_one> && <condition_two>

Examples

ExpressionResult
true && truetrue
true && falsefalse
(2 == 2) && falsefalse

String operators

Concatenation

Joins a pair of strings.

Usage

<string> + <string>

Examples

ExpressionResult
"Abc" + "def""Abcdef"
"Abc" + "def" + "gHi""AbcdefgHi"