TypeOf

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

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

[help]
(string) TypeOf expression:multi

Example

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

See Also