Difference between revisions of "GroupExists"

From Catglobe Wiki
Jump to: navigation, search
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category:Group_Functions]]
 
[[Category:Group_Functions]]
{{HelpFiles}}
+
[OBSOLETE - Please use [[Group_getGroupByResourceId|Group_getGroupByResourceId]] and [[Group_getGroupByName|Group_getGroupByName]]. More detail at [[ConversionMethods|ConversionMethods]]]
  
 
====groupExists====
 
====groupExists====
Line 20: Line 20:
 
'''Example'''
 
'''Example'''
  
bool b = groupExists(1);
+
''number groupId = 1;''
 +
 
 +
''bool b = groupExists(groupId);''
 +
 
 +
''print(b);''
  
 
'''Availability'''
 
'''Availability'''
Line 36: Line 40:
 
'''Arguments'''
 
'''Arguments'''
  
''groupName'': a string expression. It is the group’s name.
+
''groupName'': a string expression. It is the group’s qualified name.
  
 
'''Return type'''
 
'''Return type'''
Line 44: Line 48:
 
'''Example'''
 
'''Example'''
  
bool b = groupExists("Qnaire_Group");
+
''bool b = groupExists("Personal folders\\Pham Ngoc Son\\Son test group");''
 +
 
 +
''print(b);''
  
 
'''Availability'''
 
'''Availability'''

Latest revision as of 03:24, 13 May 2022

[OBSOLETE - Please use Group_getGroupByResourceId and Group_getGroupByName. More detail at ConversionMethods]

groupExists

Returns true if a group by that id exists, false if no group by that id exists.

Syntax

groupExists(groupId)

Arguments

groupId: a numeric expression. It is the group’s id.

Return type

bool

Example

number groupId = 1;

bool b = groupExists(groupId);

print(b);

Availability

Version 5.2

groupExists (alternative 1)

Returns true if a group by that name exists, false if no group by that name exists.

Syntax

groupExists(groupName)

Arguments

groupName: a string expression. It is the group’s qualified name.

Return type

bool

Example

bool b = groupExists("Personal folders\\Pham Ngoc Son\\Son test group");

print(b);

Availability

Version 5.2