Condition

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 such a case, the action checks to ensure all conditions are true before continuing to the next step in the flow.

.

If you have multiple conditions and the results of one specific condition matter later on for data analytics purposes (i.e. knowing whether an individual condition was true or false), that condition should be evaluated by itself. This action will only return a true or false without detail about which specific condition is false. 

 

Inputs

Configure the following inputs to set up this action: 

Input NameDescriptionDefault
VariableThe variable to be evaluated for a specific condition. You can create a custom variable or use existing system variables.User Input Required
RenameAssign a name to any custom variable you are usingUser Input Required
ConditionSimilar to math operations, this is used to compare the Variable and the Value. Equals, not equals, contains, less than, greater than, or betweenUser Input Required
ValueThe value being checked for Note: This field is case sensitiveUser Input Required

 

.

Exit Port Actions

.

 

Example

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 which 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 will continue through the path of the first true statement.