The Condition action allows you to evaluate specific variables or user inputs and split your flow depending on the values.
You might use Condition:
- If the day of the week is a day the office is closed, play audio requesting to call during days the office is open.
- If the time of day the call comes in is when the office is closed, play audio requesting to call during times the office is open.
- If the sentiment of a text equals an unacceptable sentiment, direct the text sender to receive a coupon.
To add a Condition, click +.
When you use Condition, you can check for more than one item. In this case, the action checks to ensure all conditions are true before continuing to the next step in the flow.
Note: If you have multiple conditions and the results of one specific condition matter later on for data analytics purposes (for example, knowing whether an individual condition was true or false), that Condition should be evaluated by itself. This action only returns a true or false without details about which specific Condition is false.
Configure the following inputs to set up this action:
|Variable||The variable to be evaluated for a specific condition. You can create a custom variable or use existing system variables.||User Input Required|
|Rename||Assign a name to any custom variable you are using.||User Input Required|
|Condition||Similar to math operations, this is used to compare the Variable and the Value: equals, not equals, contains, less than, greater than, or between.||User Input Required|
The value being checked for.
Note: This field is case sensitive.
|User Input Required|
Exit Port Actions
|Exit Port Name||Description|
|If all Conditions are True||Connect to an action that occurs if all the conditions are true.|
|One Condition is False||Connect to an action that occurs if any of the conditions is false.|
In this example, the Condition action looks for the system variable for the day of the week to equal Sunday. If the day is Sunday, the flow could be configured to play audio that explains your office is closed and to call back on a business day.
Note: Our Switch action is similar to Condition, but with Switch the flow continues through the path of the first true statement.