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.

Group isMemberOfGroup: Difference between revisions

From Catglobe Wiki
Cg_pham (talk | contribs)
No edit summary
No edit summary
 
Line 21: Line 21:
'''Example'''
'''Example'''


bool b = Group_isMemberOfGroup(12345, 5647);
''number userRid = 12345;''
 
''number groupRid = 5647;''
 
''bool b = Group_isMemberOfGroup(userRid , groupRid );
 
''print(b);'' //return True


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

Latest revision as of 03:57, 27 December 2011



Group_isMemberOfGroup

Check if a user belongs to a group

Syntax

Group_isMemberOfGroup(userResourceId, groupResourceId)

Arguments

  • userResourceId: is a number expression. It is the user's resource id
  • groupResourceId: is a number expression. It is the group's resource id

Return value

bool

Example

number userRid = 12345;

number groupRid = 5647;

bool b = Group_isMemberOfGroup(userRid , groupRid );

print(b); //return True

Availability

Version 5.6