CountAnswers

From Catglobe Wiki
Revision as of 09:53, 7 March 2011 by 127.0.0.1 (talk | contribs) (jrfconvert import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



countAnswers

Returns the number of selected answers belonging to the specified question.

Syntax

countAnswers(question)

Arguments

question: Is a question object.

Return type

number

Examples

//get the number of animals types the user has. //DomesticAnimal is a multi-answer question for asking

//animal types user’s got.

number n = countAnswers(DomesticAnimal);

Availability

Version 4.8