Conditions are algorithmic expressions that must evaluate to TRUE when a question is recalculated. If any condition in a question does not evaluate to TRUE, the question is recalculated again. If a question contains a condition that does not evaluate to TRUE in 100 attempts, a warning message appears.
To create a condition:
Create or edit the question to which you want to add algorithmic content.
Choose Variable Definitions from the Tools menu.
To create a new condition, click Add Variable. To edit an existing condition, click the Edit link for that condition.
Select Condition from the Type drop-down menu. You may also create variables and functions.
Enter a name for your condition in the Name
field.
The condition name must be unique for the current question. Condition
names may be up to 32 characters and should contain only letters,
numbers, and the underscore character. Condition names must begin
with a letter. Built-in function and
constant names are reserved and may not be used as condition names.
(Optional) Enter a description of your variable in the Description field. For example, a description might be answer must be less than 100
Enter your condition expression in the Expression field. The expression must evaluate to TRUE or FALSE. For example, an expression might be answer < 100. Use the list of available functions to help you create your condition expression.
Click Test to calculate a value, which is returned in the Calculated value field, for your condition.
Click OK to record your condition.