Skip to content

hasValue Condition

8naama edited this page Jan 24, 2023 · 4 revisions

hasValue

The condition checks if a field has a value.

  • field
  • possibleValues [array]. Type sensitive, if it's a number make sure to have the value not in quotes, if it's a string have it in quotes, if it can be both be safe and have the values both in quotes and not in quotes.

Example

{
  "steps": [
    {
      "if": {
        "condition": {
          "hasValue": {
            "field": "field_name",
            "possibleValues": ["value1", "value2"]
          }
        },
        "then": [
          {
            <processor or statement>
          }
        ]
      }
    }
  ]
}
Clone this wiki locally