Conditions

Last Updated : Jul 15, 2021 |

Conditions provide a method to check and branch a call flow based on the date or day of the week or the value of a variable.

Within the voicemail call flow, a condition can be checked using a Test Condition action. According to whether the condition is currently true or false, callers can then be routed to different actions.

Conditions are constructed from a set of basic elements. These elements can be combined within a single condition to create complex rules. For example, the week planner can be used to define a company's standard working hours and then combined with the calendar to define exception days such as public holidays.

Condition elements

The following different types of elements can be added to a condition:

  • Calendar: Select days from the calendar (up to 255 days) which, if the current date matches a selected day, cause the element to be 'true'.

  • Week Planner: Select days of week, and then a time period on each of those days, that should cause the element to be 'true'.

  • Condition: Select an existing condition that is then used as an element within another condition.

  • Compare: Compare one value to another using a selected criteria such as "Is equal to" or "Is greater than or equal to" and return 'true' when the criteria is meet. The values compared can be the current value of call variables and or number values entered directly.

Logic settings

Logic settings can be applied to both the whole condition and to the elements in a condition. These can alter when a condition is true or false.

  • AND: The condition is true when all the elements within it are true, for example both A and B are true.

  • OR: The condition is true when any element within it is true, for example if the day is Monday or Tuesday.

  • NOT: This logic element can be used to reverse the value (example return false when true) of individual elements or of the whole condition.