TypeOf

From GECK
Jump to: navigation, search


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