Condition name: Text conditions

From Catglobe Wiki
Jump to: navigation, search

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.

1800.png

Then the question with a text condition may look something like shown below...

1801.png

...with the following text conditions.

1802.png

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.

1803.png1804.png