Difference between revisions of "RoleExists"
Cg huyphong (talk | contribs) |
|||
Line 4: | Line 4: | ||
====roleExists==== | ====roleExists==== | ||
− | Checks if a specific user | + | Checks if a specific user resource template exists by its name. |
'''Syntax''' | '''Syntax''' | ||
Line 12: | Line 12: | ||
'''Arguments''' | '''Arguments''' | ||
− | ''roleName'': a string | + | ''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(" | + | 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