Difference between revisions of "Text"

From Catglobe Wiki
Jump to: navigation, search
(jrfconvert import)
 
(jrfconvert import)
Line 2: Line 2:
 

 

  
===Text===
+
Text
  
An identifier with string type is created for each Text question, its value is the value entered by the respondent.
+
Syntax : IF EXPRESSION (REPLACE STRING WITH STRING)+
  
'''Example'''
+
Position : Right after question type and before question properties ( if it existed )
  
''personalInfo = personalInfo + "Name: " + Name;''
+
This condition support all question type
  
''personalInfo = personalInfo + "Email: " + Email;''
+
Example:
  
Value can be assigned to the question by assigning a string to the question identifier.
+
QUESTION testPage PAGE
  
'''Example'''
+
IF (anotherQuestion == 1) REPLACE "Greeting" WITH "Hello" REPLACE "guest" WITH "Questionnaire team"
  
''Name = "Michael Rangstrup";''
+
IF (anotherQuestion == 2) REPLACE "Greeting" WITH "Hello" REPLACE "guest" WITH "Data team"
  
''Email = "michael@catglobe.com";''
+
Greeting guest
 
__NOTOC__
 
__NOTOC__
<!-- imported from file: 5700.htm-->
+
<!-- imported from file: 7575.htm-->

Revision as of 11:08, 7 March 2011



Text

Syntax : IF EXPRESSION (REPLACE STRING WITH STRING)+

Position : Right after question type and before question properties ( if it existed )

This condition support all question type

Example:

QUESTION testPage PAGE

IF (anotherQuestion == 1) REPLACE "Greeting" WITH "Hello" REPLACE "guest" WITH "Questionnaire team"

IF (anotherQuestion == 2) REPLACE "Greeting" WITH "Hello" REPLACE "guest" WITH "Data team"

Greeting guest