Type
Condition item
Available from
Any level tab in the Prompt File Editor
Data Node in the Call Flow Editor
Purpose
The Condition item makes it possible to select and play different prompt or data flow segments based on the condition being tested. It works in conjunction with If and Else items to test conditions and return a result. The If item makes it possible to compare the value of a selected variable, the Left Variable or Left Variable Field with:
- The value of another variable or variable field
Then, based on the result of the comparison, the system responds according to what is assigned to the If item, or continues on.
Behavior
The behavior of this item depends largely on which conditional Operator is selected. In general, when the value of the Left Variable is compared and satisfies the condition, then the application plays any prompt segments assigned to the If item. For more information about conditional operators and how to use them, see Conditional Operators.
You can use multiple If items with a single Condition item. If you do so, then the application tests for each If item in turn, in the order they appear under the Condition item. This process continues until the conditions for one If item are met, or there are no more conditions to test for, that is, there are no more If items to test.
Properties
- Left Variable - Select the variable you want to use to make the comparison.
- If the variable you select is a simple variable, this is the variable to use for the comparison. If the variable you select is a complex variable, you must select a variable field from the Left Variable Field list to use for the comparison.
- Left Variable Field - If the variable you selected in the Left Variable field is a complex variable, select the field that you want to use to make the comparison. If the variable you selected in the Left Variable field is a simple variable, this field is inactive and no choices are available.
- Compare - Select the conditional operator you want to use to make the comparison. For more information about conditional operators and how to use them, see Conditional Operators.
- Value - Use this field when you want to compare the value of the Left Variable or Left Variable Field with a literal, or constant, value. Enter in this field the literal value you want to compare the Left Variable or Left Variable Field with.
- For example, suppose you want to compare the account balance to see if it has a minimum value of at least $2000, and if it is, you want to play this prompt instead of another. To do this, you enter $2000 in this field and the appropriate conditional operator in the Compare field.
- If you use the Value field, you cannot use the Right Variable field.
- Right Variable - Select the variable you want to compare with the Left Variable or Left Variable Field.
- If the variable you select is a simple variable, this is the variable to use for the comparison. If the variable you select is a complex variable, you must select a variable field from the Right Variable Field list to use for the comparison.
- If you use the Right Variable field, you cannot use the Value field.
- Right Variable Field - If the variable you selected in the Right Variable field is a complex variable, select the field that you want to use to make the comparison. If the variable you selected in the Right Variable field is a simple variable, this field is inactive and no choices are available.