TypeOf

From the Fallout3 GECK Wiki
Revision as of 17:52, 16 July 2014 by imported>Odessa (adapted from gribbleshnibbit)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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