Difference between revisions of "ToString"
Jump to navigation
Jump to search
imported>Odessa (Created page with " {{Function |origin = NVSE |summary = Added by NVSE V4. Attempts to convert an expression to a string. For numeric expressions, the result is a string representation of the...") |
imported>Odessa (forgot to add categories) |
||
Line 43: | Line 43: | ||
*[[Tutorial: String Variables 6|String Variables Tutorial: Passing strings as parameters]] | *[[Tutorial: String Variables 6|String Variables Tutorial: Passing strings as parameters]] | ||
*[[ToNumber]] | *[[ToNumber]] | ||
[[Category:Functions_(NVSE)]] | |||
[[Category:String Variables]] |
Revision as of 16:24, 27 June 2014
< [[::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