Ar Prev

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(key:arrayKey) ar_Prev src:array prevKey:arrayKey

Returns the key of the element immediately preceding the passed key.

Returns Ar_BadNumericIndex/Ar_BadStringIndex if no key precedes it.

Returns Ar_BadNumericIndex/Ar_BadStringIndex if the passed key does not exist in the array.