TypeOf

From GECK

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