IsMemberOfGroup

From Catglobe Wiki
Revision as of 08:30, 22 March 2011 by Cg pham (talk | contribs)
Jump to: navigation, search



isMemberOfGroup

Returns whether user of the current questionnaire answer sheet is member of specified group. Throws exception if no group by that id exists.

Syntax

isMemberOfGroup(groupId)

Arguments

groupId: a numeric expression. It is the id of the group.

Return type

bool

Example

bool b = isMemberOfGroup(1);

Availability

Version 5.2

is member of Group (alternative 1)

Returns whether user of the current questionnaire answer sheet is member of specified group. Throws exception if no group by that id exists.

Syntax

isMemberOfGroup(groupName)

Arguments

groupName: a string expression. It is the name of the group.

Return type

bool

Example

bool b = isMemberOfGroup("Qnaire_Group");

Availability

Version 5.2

is member of Group (alternative 2)

Returns whether a user is member of specified group. Throws exception if no group by that id exists.

Syntax

isMemberOfGroup(userId, groupId)

Arguments

userId: a numeric expression. It is the user’s id.

groupId: a numeric expression. It is the group’s id.

Return type

bool

Example

bool b = isMemberOfGroup(1, 2);

Availability

Version 5.2

is member of Group (alternative 3)

Returns whether a user is member of specified group. Throws exception if no group by that id exists.

Syntax

isMemberOfGroup(userId, groupName)

Arguments

userId: a numeric expression. It is the user’s id.

groupName: a string expression. It is the group’s qualified name.

Return type

bool

Example

bool b = isMemberOfGroup(1, "Qnaire_Group");

Availability

Version 5.2

==