ASEARCH†
Format†
ASEARCH( key , array )
Function†
- Searches for a single value from a general purpose array.
Arguments†
- key
- The key value (string) to be searched.
- array
- A general purpose array (simple arrays cannot be used).
Return value†
- The ordinal number (0-indexed) of the first element that is found is returned.
- If nothing is found, -1 is returned.
Related†
Version†
- YAYA: Available from the start
- Available in AYA5.8
Example†
_array = ('Sakura','Mayura','Nekoko') // Assign a general purpose array
ASEARCH('Mayura', _array) // "1" is output