|
Returns "true" if the element exists in the array and "false" otherwise. |
Returns "true" if the element exists in the array and "false" otherwise.
|
Boolean
if( elementExists(watchers, currentUser()) ){ print("You are watching this issue."); } |
The routine returns "true" if currentUser is in the watchers array and if the result is "true" a message is printed.
If elem is not the same type as declared in the array definition, the routine returns "error". |