In this Pagearticle
Table of Contents | ||||
---|---|---|---|---|
|
...
Description | Evaluates the expression represented by the given string. The expression can reference document values and pipeline Pipeline parameters. This is similar to the JavaScript eval().
| ||
---|---|---|---|
Syntax |
| ||
Examples | Expression: Result: 7 Expression: Result: false (if the value of the pipeline parameter id is greater than 100) |
...
Description | Determines whether a value is Not-a-Number (NaN) or not. This is similar to the JavaScript isNaN. | ||
---|---|---|---|
Syntax |
| ||
Examples | Expression: Result: false Expression: Result: true Expression: Result: false |
jsonPath
Description | Reads the values from the given object that match the given JSONPath. If the path is simple and does not traverse multiple paths through the object hierarchy (such as
| ||||
---|---|---|---|---|---|
Syntax |
| ||||
Examples | Expression: This expression will return the "email_address" field in the array of objects at "$SupportTicketDefinition.partners" where the objects have a "type" property with a value of "contact".
Where "$" contains:
Result: "bob@example.com" |
...
Description | Parses a string argument and returns a floating point number. Specifically, this function parses characters into a valid floating-point number left to right. Once a character breaks this condition (like a comma), then the parseFloat function considers the break as the end of the number, and the rest of the string is ignored (see last example). This is similar to the JavaScript parseFloat. | ||
---|---|---|---|
Syntax |
| ||
Examples | Expression: Result: 0.0314 Expression: Result: NaN Expression: where $field021 contains "23.536269999999998"
Result: 23.5363 Expression: Result: 3 |
parseInt
Description | Parses a string argument and returns an integer. This is similar to the JavaScript parseInt. Pixels are not currently supported. | ||
---|---|---|---|
Syntax |
| ||
Examples | Expression: where _id has a value of "101" Result: 101 |
...
Description | Returns a string indicating the object type. This is similar to the JavaScript typeof. | ||
---|---|---|---|
Syntax |
The possible return values are: "boolean", "number", "string", "object", and "array". | ||
Examples | Expression: Result: string Expression: Result: number Expression: Result: boolean Expression: where $Array contains an array Result: array Expression: Result: object |