From 7e521f026429f0ccfa9c95197c26453e7caef72b Mon Sep 17 00:00:00 2001 From: gumi Date: Wed, 31 May 2017 12:15:47 -0400 Subject: add documentation for getarrayindex() --- doc/script_commands.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc/script_commands.txt') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 923fad96b..49db95153 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -2437,6 +2437,17 @@ If you do this: --------------------------------------- +*getarrayindex() + +This command returns the index of the passed array. This is useful when +used in combination with getarg() + +Example: + + getarrayindex(.@foo[42]) // 42 + +--------------------------------------- + *getelementofarray(, ) This command retrieves the value of the element of given array at given -- cgit v1.2.3-60-g2f50