Skip to end of banner
Go to start of banner

arrayElementExists

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Current »

Description

Returns "true" if the element exists in the array and "false" otherwise.

Parameters

Return Type

Boolean

Example

if( elementExists(watchers, currentUser()) ){
    print("You are watching this issue.");
}

The function 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 function returns "error".

See also

Filter by label

There are no items with the selected labels at this time.

  • No labels