Difference between revisions of "Condition name: Text conditions"

From Catglobe Wiki
Jump to: navigation, search
 
Line 1: Line 1:
[[Category:Question conditions]]
+
== Condition name: Text conditions ==

 
  
======Condition name: Text conditions======
+
'''Question types applied'''
  
'''Question types applied'''
+
All
  
All
+
'''Description'''
  
'''Description'''
+
With this condition, text elements in the question text can be replaced by others if certain criteria are fulfilled.
  
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.  
  
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'''
  
'''Example'''
+
Let us imagine that a question prior to the question with text conditions looks like below.
  
Let us imagine that a question prior to the question with text conditions looks like below.
+
[[Image:1800.png]]
  
[[Image:1800.png]]
+
Then the question with a text condition may look something like shown below...  
  
Then the question with a text condition may look something like shown below...
+
[[Image:1801.png]]
  
[[Image:1801.png]]
+
...with the following text conditions.
  
...with the following text conditions.
+
[[Image:1802.png]]
  
[[Image:1802.png]]
+
Condition 1 (Gender_Ques == 1) would replace the {gender} tag with "he".  
  
Condition 1 (Gender_Ques == 1) would replace the {gender} tag with "he".
+
Condition 2 (Gender_Ques == 2) would replace the {gender} tag with "she".  
  
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.  
  
Look below for how the two questions would like with the choice of "Male" in the Gender question.
+
[[Image:1803.png]][[Image:1804.png]] __NOTOC__ <!-- imported from file: 1013.htm-->
  
[[Image:1803.png]][[Image:1804.png]]
+
[[Category:Question_conditions]]
__NOTOC__
 
<!-- imported from file: 1013.htm-->
 

Latest revision as of 06:39, 22 December 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.

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