$isMemberOfGroup

The function isMemberOfGroup returns true (1) if the current user is a member of the group specified in parameter 1, otherwise false (0).
Syntax
    $isMemberOfGroup{group_name}{username}
DocumentationExamines if the specifid user is a member of the named group:

    Parameters:
      group_name, the name of the group to examine if the specified user is a member of.
      username, a optional parameter to specify a user other than the current; defaults to the name of the current user.
    Returns:
      1 if and only if the specified user is a member of the named group; 0 otherwise.
Examples
Example 1:
    $isMemberOfGroup{regulars_group}
    Result 1:
    if current user is member of group "regulars_group":
    1
    if current user is no member of group "regulars_group":
    0
Example 2:
    $if{$isMemberOfGroup{regulars_group}}
      {user belongs to regulars group}
        {user doesn't belong to regulars group}
    Result 2:
    if current user is member of group "regulars_group":
    user belongs to regulars group
    if current user is no member of group "regulars_group":
    user doesn't belong to regulars group
GroupSecurity
Minimum required transaction-mode:READ
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters1
Maximum parameters 2