Jump to content
Toggle menu
  • 915 articles
  • 3.8K files
  • 30.2K users
  • 279.2K edits
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Multi Grid: Difference between revisions

From Catglobe Wiki
Cg_pham (talk | contribs)
No edit summary
Cg_pham (talk | contribs)
No edit summary
 
Line 1: Line 1:
[[Category:Question_Identifier]]
[[Category:Question_Identifier]]

{{HelpFiles}}


===Multi Grid===
===Multi Grid===

Latest revision as of 07:19, 14 December 2011



Multi Grid

An identifier with array type is created for each Multi Grid question. The array is zero-index based, its size is equal to the number of sub questions. It contains boolean array items, which have the same format and usage like a Multi question.

Example

if (Q4[0][1])//check if James is considered as Kind

//do something

else if (Q4[2] == [1-3])//check if Maria is considered as Funny or Kind or Relax

//do something

else if (Q4[1] == 4)//check if Peter is considered as Clever

//do something

Each sub question can be assigned value as a multi question.

Example

Q4[0][1] = true;//Jame is kind

Q4[2] = {true, false, false, false}; // Peter is funny

Q4 = {empty, empty, empty};//clear all answers

Q4 = {{true, false, false, false},{false, true, false, false}, {false, false, true, false}};//James is funny, Peter is kind, Maria is relaxed

Back to: Multi