Evaluates to true if the valueToFind is an element name in the arrayToSearch.
# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 2.9 Security:
# Syntax
valueToFind is among the keys of arrayToSearch
# Params
- valueToFind : - arrayToSearch :
# Examples
local tArray put "World" into tArray["Hello"] get "Hello" is among the keys of tArray -- evaluates to true
if "text" is among the keys of the dragData then set the text of field "Drag Target" to the dragData["text"] end if
# Description
is among the keys of should be used to check whether an array contains an element of a specified name.
# Tags
# See
- **operator:** is not among, is not among the keys of, is among - **function:** keys