AmongElementsOfArray |
Type | operator |
Dictionary | LCB |
Library | LiveCode Builder |
Syntax | <Needle> ( is not | is ) among the elements of <Target>
|
Associations | com.livecode.array |
Summary | Determines if an array contains a given element
|
Parameters | Name | Type | Description |
---|
Needle | | Any expression.
|
Target | | An expression which evaluates to an array.
|
|
Example | variable tArray as Array
put "value" into tArray["key"]
variable tIsAmong as Boolean
put "value" is among the elements of tArray into tIsAmong
|
Values | Name | Type | Description |
---|
return | | Returns true if Needle can be found among the elements of Target.
|
|
Description | Elements are compared using the default comparison for that type. Thus for a string, tString ,
tString is among the elements of tArray
is a case sensitive search.
|
Tags | arrays |