Difference between revisions of "RoleExists"

From Catglobe Wiki
Jump to: navigation, search
 
Line 4: Line 4:
 
====roleExists====
 
====roleExists====
  
Checks if a specific user role exists by its name.
+
Checks if a specific user resource template exists by its name.
  
 
'''Syntax'''
 
'''Syntax'''
Line 12: Line 12:
 
'''Arguments'''
 
'''Arguments'''
  
''roleName'': a string expression. It is the qualified name of a role.
+
''roleName'': a string value. It is the qualified name of a user resource template.
  
 
'''Return type'''
 
'''Return type'''
Line 20: Line 20:
 
'''Example'''
 
'''Example'''
  
bool b = roleExists("FullUser");
+
bool b = roleExists("Consultant");
  
 
//true
 
//true

Latest revision as of 05:31, 22 December 2011



roleExists

Checks if a specific user resource template exists by its name.

Syntax

roleExists(roleName)

Arguments

roleName: a string value. It is the qualified name of a user resource template.

Return type

bool

Example

bool b = roleExists("Consultant");

//true

Availability

Version 5.4