Switch

Stuff You Need to Know

This component allows you to read in data from the previous component and perform actions based on a set of conditions.


How to Configure

Component-specific settings:
  • Property (field) - This is the incoming property you will use for the comparison. For help on how to access the incoming data, see this article on Using Upstream Data in the Switch.
  • CONDITIONS (subgroup) - This subgroup allows you to choose one or more condition(s) to perform next actions on. Each condition creates a new output element on the component. The first output element will fire when the first condition is met, the second output element will fire when the second condition is met, etc. Conditions can overlap if you choose.

    • Operator

      • Basic operators: Typical logical operators include >, <, >=, <=, == (equal to), !== (not equal to)

      • String only operators: Starts with, ends with, and regex. When given a string, match on the beginning or end of a string, or match based on a given regex. Read more about Regex here.

      • Index Of: Returns the position in the incoming data (array or string, for example) of the first occurrence of the given value

    • Data-type

      • Options: Number, String, Boolean

    • Value

      • Enter the value to match in the condition.


Standard settings:

Click here to view information on standard settings.