group.ContainsChild
概要¶
サーバスクリプトで「groupオブジェクト」に指定した子グループが含まれるか判定します。
構文¶
戻り値¶
指定した子グループが含まれる場合には true 含まれない場合には false を返却します。
使用例¶
下記の例ではグループID 1 のグループにグループID 2 の子グループが含まれるか判定します。
JavaScript¶
let group = groups.Get(1);
if (group.ContainsChild(2)) {
context.Log('contains');
} else {
context.Log('not contains');
}
