ToString

Revision as of 16:24, 27 June 2014 by imported>Odessa (forgot to add categories)


< [[::Category:Functions|Category:Functions]]

A function added by the New Vegas Script Extender.

Description

Added by NVSE V4. Attempts to convert an expression to a string. For numeric expressions, the result is a string representation of the numeric value. For objects, it is the name of the object if available; otherwise it is the formID expressed in hexadecimal notation. For string expressions no conversion is necessary.

You can also use the shorthand alias '$'.

Syntax

(string) ToString ToConvert:exp

Alias

(string) $ToConvert:exp

Example

string_var my_string

let my_string := "whatever"

MessageEx $my_string
string_var my_string
ref rActor

let rActor := SunnyREF

let my_string := $rActor

my_string == "Sunny Smiles" ; thats the name of the reference


See Also