Miscellaneous
| Name | Description | Example |
|---|---|---|
| now | Returns current timestamp | |
| random | Returns a random number between 0 and 1 | |
| size | Returns the length of a string or number of objects in a set | |
| item_values | Returns property values of a particular item as a dictionary | |
| reduce | Reduces a set into a single value using an operator |
Now
Returns current timestamp.
Definition
Example
The following expression results in true:
Random
Returns a random number between 0 and 1.
Definition
Size
Returns the length of a string or number of objects in a set.
Definition
| Argument | Type |
|---|---|
| value |
|
Examples
All the following expressions result in true:
Item Values
Returns property values of a particular item as a dictionary.
Definition
| Argument | Type | Meaning |
|---|---|---|
| value |
| ID of an item |
Example
Reduce
Reduces a set into a single value using an operator.
Definition
| Argument | Type | Meaning |
|---|---|---|
| operator |
| One of |
| input_set |
| Set that will be reduced |
| initial_value | Same type as members of | Optional. Value used as left operand for the first operation. |
Example
All the following expressions result in true: