Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Text: Difference between revisions

From Catglobe Wiki
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 = "[email protected]";''
Greeting guest
__NOTOC__
__NOTOC__
<!-- imported from file: 5700.htm-->
<!-- imported from file: 7575.htm-->

Revision as of 09: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