Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

RoleExists: Difference between revisions

From Catglobe Wiki
Cg_pham (talk | contribs)
No edit summary
No edit summary
 
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 03: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