Difference between revisions of "Condition name: Text conditions"
(jrfconvert import) |
|||
Line 1: | Line 1: | ||
− | [[Category: | + | [[Category:Question conditions]] |
| | ||
Revision as of 07:35, 31 March 2011
Condition name: Text conditions
Question types applied
All
Description
With this condition, text elements in the question text can be replaced by others if certain criteria are fulfilled.
If the question has many “Text conditions” conditions, these conditions will be checked in the order of “first come, first serve”. It means that the first condition will be checked. If the criteria on this condition are not fulfilled, the second condition will be checked. If its criteria are fulfilled the replacement in the question text will be executed and the rest conditions are not checked. Otherwise, the next condition will be checked until all the “Text conditions” conditions are checked.
Example
Let us imagine that a question prior to the question with text conditions looks like below.
Then the question with a text condition may look something like shown below...
...with the following text conditions.
Condition 1 (Gender_Ques == 1) would replace the {gender} tag with "he".
Condition 2 (Gender_Ques == 2) would replace the {gender} tag with "she".
Look below for how the two questions would like with the choice of "Male" in the Gender question.