The Exists() function of the sySecurityTaskRole form verifies whether the specified security task has been added to a security role.
Exists(role_ID, task_ID)
• role_ID – A string specifying the ID of the security role.
• task_ID – A string specifying the ID of the security task.
A boolean. The value true indicates the security task exists for the security role, while the value false indicates it does not.