Difference between revisions of "RoleExists"

From Catglobe Wiki
Jump to: navigation, search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
[[Category:User_Functions]]
 
[[Category:User_Functions]]

+
{{HelpFiles}}
  
 
====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 04: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