Ar BadNumericIndex

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

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