Difference between revisions of "Group areMemberOfGroup"

From Catglobe Wiki
Jump to: navigation, search
 
Line 1: Line 1:
{{HelpFiles}}
+
[[Category:Group_Functions]]
 +
{{HelpFiles}}
  
=== Group_areMemberOfGroup ===
+
===Group_areMemberOfGroup===
  
 
Check the list user resource id are members of the group.
 
Check the list user resource id are members of the group.
Line 7: Line 8:
 
Which takes the array user resource id and group resource id and returns dictionary of id and true/false. True if member, false if not
 
Which takes the array user resource id and group resource id and returns dictionary of id and true/false. True if member, false if not
  
=== Syntax ===
+
===Syntax===
  
 
Group_areMemberOfGroup(arrayUserRid,groupRid);
 
Group_areMemberOfGroup(arrayUserRid,groupRid);
  
=== Arguments ===
+
===Arguments===
  
 
arrayUserRid: Array number resource id of users
 
arrayUserRid: Array number resource id of users
Line 17: Line 18:
 
groupRid: Is a number resource id of the group
 
groupRid: Is a number resource id of the group
  
=== Return type ===
+
===Return type===
  
 
Dictionary
 
Dictionary
  
=== Examples ===
+
===Examples===
 
 
 
<source lang="javascript">
 
<source lang="javascript">
 
Group_areMemberOfGroup({3,4,55,56,6407},6397);
 
Group_areMemberOfGroup({3,4,55,56,6407},6397);
 
//{"3": False, "4": False, "55": False, "56": False, "6407": True}
 
//{"3": False, "4": False, "55": False, "56": False, "6407": True}
</source> __NOTOC__
+
</source>
 +
__NOTOC__

Latest revision as of 04:59, 9 April 2016



Group_areMemberOfGroup

Check the list user resource id are members of the group.

Which takes the array user resource id and group resource id and returns dictionary of id and true/false. True if member, false if not

Syntax

Group_areMemberOfGroup(arrayUserRid,groupRid);

Arguments

arrayUserRid: Array number resource id of users

groupRid: Is a number resource id of the group

Return type

Dictionary

Examples

Group_areMemberOfGroup({3,4,55,56,6407},6397);
//{"3": False, "4": False, "55": False, "56": False, "6407": True}