Ar BadNumericIndex

From the Fallout3 GECK Wiki
Revision as of 22:07, 27 May 2014 by imported>Odessa (created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::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

[help]
(-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