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.

IsMemberOfSampleRule: Difference between revisions

From Catglobe Wiki
jrfconvert import
 
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:HelpBooks]]
[[Category:User_Functions]]

[Will obsolete soon and replace by [[User_isMemberOfSampleRule|User_isMemberOfSampleRule]]. More detail at [[ConversionMethods|ConversionMethods]] ]


====isMemberOfSampleRule====
====isMemberOfSampleRule====
Line 28: Line 28:
'''Example'''
'''Example'''


bool b = isMemberOfSampleRule(5);
''bool b = isMemberOfSampleRule(5);''
 
or
 
''bool b = isMemberOfSampleRule(2345,5);''


'''Availability'''
'''Availability'''

Latest revision as of 02:32, 13 May 2022

[Will obsolete soon and replace by User_isMemberOfSampleRule. More detail at ConversionMethods ]

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);

or

bool b = isMemberOfSampleRule(2345,5);

Availability

Version 5.2