Writing Docs Gigedit SFZ Instrument Scripts NKSP Language NKSP Reference


Searches for the sought value needle in the given array, if such a value is found, then this function returns the first index of the value being found. Otherwise if the array does not have such a value, it returns -1 instead.

Function Prototype

search(array, needle)


Argument Name Data Type Description
array Integer Array Variable The integer array variable to be scanned.
needle Integer Number The value to be searched for.

Return Value

Description Data Type
Index of the first element found with that value, otherwise -1 if nothing found. Integer Number


None yet.

See also

sort(), array_equal()


Since LinuxSampler 2.0.0.svn52.

Document Updated:  2017-05-26  |  Author:  Christian Schoenebeck