IsMemberOfSampleRule

From Catglobe Wiki
Revision as of 11:11, 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



isMemberOfSampleRule

Returns whether a user is member of specified sample rule(*).

(*)A sample consists of several sample rules, which can be added based on users or groups

Syntax

isMemberOfSampleRule(sampleRuleId)

or

isMemberOfSampleRule(userId, sampleRuleId)

Arguments

sampleRuleId: a numeric expression. It is the sample rule’s id.

userId: a numeric expression. It is the user’s id. If there is no user id specified, it will check on the current questionnaire answer sheet's user.

Return type

bool

Example

bool b = isMemberOfSampleRule(5);

Availability

Version 5.2