TypeOf

From GECK

Revision as of 16:52, 16 July 2014 by Odessa (Talk | contribs) (adapted from gribbleshnibbit)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A function added by the New Vegas Script Extender.

Description

Returns a string representing the type of an expression. This is mainly useful for determining the type of an array element at run-time. Possible return values: "String", "Number", "Form", "Array", "StringMap", "Map".

Syntax

(string) TypeOf expression:multi

Example

if eval (TypeOf SomeArray[SomeKey]) == "Number"
    ; Do something that works on numbers
endif

See Also

Personal tools