AmongKeysOfArray |
Type | operator |
Dictionary | LCB |
Library | LiveCode Builder |
Syntax | <Needle> ( is not | is ) among the keys of <Target>
|
Associations | com.livecode.array |
Summary | Determines if an array has a given key
|
Parameters | Name | Type | Description |
---|
Needle | | An expression which evaluates to an integer, string, or list of integers.
|
Target | | An expression which evaluates to an array.
|
|
Example | variable tArray as Array
put "value" into tArray["key"]
variable tIsAmong as Boolean
put "key" is among the keys of tArray into tIsAmong
|
Values | Name | Type | Description |
---|
return | | Returns true if Needle can be found among the keys of Target.
|
|
Related | Operator: IsInList
|
Description | The keys of an array are case insensitive. Thus
tVar is among the keys of tArray
is not equivalent to
tVar is in (the keys of tArray)
as the latter IsInList operation is case sensitive.
|
Tags | arrays |