Set a Variable Using the UNANSWERED Expression Model
You can set variables to be unanswered by using the SET VAR TO VALUE instruction in a Computation variable or other script. This may be useful if you want to either clear the value from a variable, or set a variable to some other value later in the template. Thus, to clear the answer for a variable named Text Var, the instruction would appear as follows:
SET Text Var TO UNANSWERED
You should be aware that the UNANSWERED instruction model is not the counterpart to the ANSWERED model. Instead, the UNANSWERED model is a value or an answer (albeit "empty") that is associated with a variable. On the other hand, the ANSWERED model is a parameter to test if certain conditions are met, such as IF ANSWERED or IF NOT ANSWERED. If you are trying to test whether a variable is answered, use the ANSWERED or NOT ANSWERED models. If you are trying to assign a value to a variable, use the UNANSWERED model.
To set a variable to be unanswered in a Computation variable
- Open the Computation Editor.
- Place the text cursor in the script where you want to set the variable to be unanswered.
- Drag the SET VAR TO VALUE model from the Instruction models list to where the text cursor is.
- Drag the variable you want to appear as "unanswered" from the Components list and place it in the VAR placeholder.
- Select the VALUE placeholder and type UNANSWERED (in all capital letters).