| 2 April 2002 |
InGroups() |
| Author | ScriptLogic Corporation |
| Action | Checks whether the user is a member of a group, given a list of one or more groups. |
| Syntax | InGroups (GroupList, [All]) |
| Parameters | GroupList (Required / Array) An array of group names. -or- A string containing a semicolon-separated list of groups. All (Optional / Numeric) If a numeric 1 (or text string "all"), InGroups() will perform a Boolean AND on all groups passed to this function. If this parameter is omitted, a Boolean OR will be performed. |
| Remarks | *** Now built into KiXtart 4.10 ***. |
| Returns | A numeric count of the total number of groups the user is a member of. If the user is not a member of any groups, a 0 is returned. If the optional "all" parameter is specified and the user is not a member of ALL the groups, a -1 is returned. |
| Examples | |
| Source | |