group.ContainsChild
Overview¶
In the "Server Script", determine whether the "group object" contains a specified "Child Group".
Syntax¶
Return Value¶
Returns true if the specified "Child Group" is included, false if not.
Usage Examples¶
In the following example, it determines whether the "Group" with group ID 1 contains the "Child Group" with group ID 2.
JavaScript¶
let group = groups.Get(1);
if (group.ContainsChild(2)) {
context.Log('contains');
} else {
context.Log('not contains');
}