Info |
---|
|
This routine is available starting with SIL Engineā¢ 1.0. Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | arrayElementExists(array, elem) | Package | array | |
...
Alias | elementExists (array, elem) | Pkg Usage | elementExists( |
|
...
Description
Excerpt |
---|
|
Returns "true" if the element exists in the array and "false" otherwise. |
Returns "true" if the element exists in the array and "false" otherwise.
...
Alias
elementExists(array, elem)
...
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
array | |
...
Array | Yes | Array where the element existence is checked. | element |
|
...
Any | Yes | Element the existence is checked for. |
|
...
Return Type
booleanBoolean
Example
Code Block |
---|
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.
...
Note |
---|
If elem is not the same type as declared in the array definition, the routine returns "error". |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 10025 |
---|
showSpace | false |
---|
cql | label = "array_routines" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|