Functions, data types, and operators
The Decision component supports certain functions and operators described in the topic. Use this topic as a reference.
Supported functions and operators
| Type | Example | Evaluated as |
|---|---|---|
| Values |
|
Not applicable |
| Integers | Represented using numbers. Example, 443, 124, and 665. | Int32 |
| Floating point numbers | 221.12, 43.76, and 5.9 | Decimal |
| Scientific notation | You can use the e to define the power of 10 (10^).
|
Double |
| Dates and Times | Must be enclosed between #2008/01/31# // for en-US culture |
DateTime |
| Boolean | True or False | Boolean |
| Strings | Any character between single quotes ' is evaluated as String. |
'ServiceNow' |
| Parameters | A parameter as a name, and can be optionally contained inside brackets. 2 + x, 2 + [x] |
|
| Function | A function is made of a name followed by braces, containing optionally any value as arguments. Abs(1), doSomehting(1, 'dummy') |
|
| Operators | Expressions can be combined using operators. Each operator as a precedence
priority. Here is the list of those expression's priority.
|
|
| Logical | These operators can do some logical comparison between other expressions:
The and operator has a higher priority than the or, thus in the example above, false and true are evaluated first. |
|
| Relational | Relational operators are used to compare values. These operators always
result in a boolean value.
|