Ar BadNumericIndex

< [[::Category:Functions|Category:Functions]]

A function added by the New Vegas Script Extender.

Description

Added by NVSE V4. Returns the constant -99999, which represents an invalid numeric array index. It can be used to compare the results of other array functions.

Syntax

(-99999:int) Ar_BadNumericIndex

Example

array_var aBeatles

let aBeatles := Ar_List JohnREF, PaulREF, GeorgeREF, RingoREF ; * example context

if eval (Ar_Find SunnyREF, aBeatles) == Ar_BadNumericIndex
    ; * Sunny Smiles is not a member of the Beatles array

endif

See Also