Enforcement Action Condition Syntax Table
- 07 Feb 2023
- 1 Minute to read
-
Print
-
DarkLight
-
PDF
Enforcement Action Condition Syntax Table
- Updated on 07 Feb 2023
- 1 Minute to read
-
Print
-
DarkLight
-
PDF
The following table describes the syntax of all condition statement (IFTTT) types and the available functions and operators.
See Condition Statement Examples and Use Cases to see some detailed examples.
All field types can be configured as either a single value or as a list (array) with multiple values.
Element | Type | Syntax | Notes |
---|---|---|---|
all | Statement |
| See set_value below for options. |
switch/case | Statement |
| Operators support functions. A value can be used instead of an operator. |
add | Function |
| Supports a list of numeric arguments (values and/or single value number type fields). |
concat | Function |
| Supports a list of string arguments (values and/or single value string type fields). |
join | Function |
| Converts/flattens a list (array) into a single string value. |
count | Function |
| Field type is a list (array) of numbers. |
max | Function |
| Field type is a list (array) of numbers. |
min | Function |
| Field type is a list (array) of numbers. |
multiply | Function |
| Supports a list of number arguments (values and/or single value number type fields). |
sum | Function |
| Sums all the number values in a list. |
split | Function |
| Splits the string at the delimiter character and creates a list of the separate strings. |
contains | Operator |
| For lists - will be true if one item=aaa For strings - will be true if part of string=aaa |
count | Operator |
| Counts and matches the number of items in a list. |
starts_with | Operator |
| For single value strings only. |
ends_with | Operator |
| For single value strings only. See also not_ends_with. |
not_ends_with | Operator |
| For single value strings only. |
field_equal | Operator |
| Compares the exact given value with the value in the field. |
set_value | Operator |
| Multiple (nested) functions can be used. The field type must match the type of *form.field*. |
field_exists | Operator |
| Tests whether the field "adapterfield1" exists. If true, sets the value of the indicated field to "value". |