Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Examples

Example 1

Code Block
languagejs
userInGroup("Administrators", "Admin1");

Returns "true" if Admin1 is included in Administrators group and "false" if Admin1 is not included in Administrators group.

Example 2

Code Block
languagejs
userInGroup("Users", currentUser());

Returns: True if the current user is included in "Users" group or False if the current user is not included in "Users" group.

Example 3

Code Block
languagejs
string[] groups = {"Administrators", "Users"};
userInGroup(groups, currentUser());

...