Difference between revisions of "Text"

From Catglobe Wiki
Jump to: navigation, search
(jrfconvert import)
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:HelpBooks]]
+
[[Category:Question_Identifier]]

+
{{HelpFiles}}
 +
== Headline text ==
  
===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-->

Latest revision as of 08:27, 14 December 2011


== Headline text ==

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