Enforcement Action Condition Syntax Table
  • 07 Feb 2023
  • 1 Minute to read
  • Dark
    Light
  • PDF

Enforcement Action Condition Syntax Table

  • Dark
    Light
  • 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.

ElementTypeSyntaxNotes
allStatement
  • device all then form.field set_value
  • user all then form.field set_value
See set_value below for options.
switch/caseStatement
  • switch [aql.field]
  • case operator then form.field set_value
Operators support functions. A value can be used instead of an operator.
addFunction
  • add (item1, item2,…, itemN)
Supports a list of numeric arguments (values and/or single value number type fields).
concatFunction
  • concat (item1, item2,…, itemN)
Supports a list of string arguments (values and/or single value string type fields).
joinFunction
  • join (items, delimiter)
Converts/flattens a list (array) into a single string value.
countFunction
  • count ([aql.field])
Field type is a list (array) of numbers.
maxFunction
  • max ([aql.field])
  • max (item1, item2,…, itemN)
Field type is a list (array) of numbers.
minFunction
  • min ([aql.field])
  • min (item1, item2,…, itemN)
Field type is a list (array) of numbers.
multiplyFunction
  • multiply (item1, item2,…, itemN)
Supports a list of number arguments (values and/or single value number type fields).
sumFunction
  • sum ([aql.arrayfield])
Sums all the number values in a list.
splitFunction
  • split([field], delimiter)
Splits the string at the delimiter character and creates a list of the separate strings.
containsOperator
  • case contains (“aaa”)

For lists - will be true if one item=aaa

For strings - will be true if part of string=aaa

countOperator
  • case count (10)
Counts and matches the number of items in a list.
starts_withOperator
  • case starts_with (“aaa”)
For single value strings only. 
ends_withOperator
  • case ends_with (“aaa”)
For single value strings only. See also not_ends_with.
not_ends_withOperator
  • case not_ends_with (“aaa”)
For single value strings only. 
field_equalOperator
  • case field_equal (“google”)
  • case field_equal (“8.3”)
  • case field_equal (true)
Compares the exact given value with the value in the field.
set_valueOperator
  • set_value “string”
  • set_value [aql.field]
  • set_value function ()
Multiple (nested) functions can be used. The field type must match the type of *form.field*.
field_existsOperator
  • switch adapterfield1
    case field_exists then form.field set_value “value”
Tests whether the field "adapterfield1" exists. If true, sets the value of the indicated field to "value".

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.