Click or drag to resize
IUserAccessiableGetAnswersIter Method (Int32, Int32, Boolean)
Relevant for all questions that are within an iterated chapter. Returns a list of the selected answers in a specific itreation depending on the question type in a randomized order. For example for a Single Choice question it would rerutn the selected answer (equivalent to AnswerIter(inQuesIdx, inIter)). For a Multiple Selection question it would return a list of all the selected answers in a randomized order.

Namespace: SurveyToGo.UserLogic.Interfaces
Assembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax
C#
int[] GetAnswersIter(
	int inQuesIdx,
	int inIter,
	bool inRandom
)

Parameters

inQuesIdx
Type: SystemInt32
Index of question
inIter
Type: SystemInt32
Iteration number
inRandom
Type: SystemBoolean
true/false

Return Value

Type: Int32
Array containing the selected answers indexes
Examples
For a Multiple Selection question with answers 1,2,3,4,5,6 and 3,5 selected in the third iteration if in Random is 'true' the following code will return one of the following: - "In the 3rd iteration the First value selected is: 2 Second value selected is: 5" - "In the 3rd iteration the First value selected is: 5 Second value selected is: 2" var i=GetAnswersIter(CurrQues, 3, true); Prompt("In the 3rd iteration the First value selected is: " + i[0] + " Second value selected is: " + i[1]);
See Also