Difference between revisions of "String Variable"

167 bytes added ,  06:04, 28 June 2014
mistake, missed $
imported>Odessa
(Moved page to conventional capitalizaton/non plural)
 
imported>Odessa
(mistake, missed $)
Line 9: Line 9:
let my_string := "this is my string"
let my_string := "this is my string"


MessageEx my_string
MessageEx $my_string


if eval my_string == "this string"
; * note: the MessageEx function requires you to include '$' (short for 'ToString') before the variable name
 
if eval my_string == "this is another string"
   ; do something. Obviously this is false in this case.
   ; do something. Obviously this is false in this case.
endif
endif
Line 23: Line 25:
let my_string := "the value of MyInt is %g", MyInt
let my_string := "the value of MyInt is %g", MyInt
</pre>
</pre>
 
==See Also==
*[[Let]]
*[[Eval]]
*[[ToString]]
[[Category:String Variables]]
[[Category:String Variables]]
[[Category:NVSE]]
[[Category:NVSE]]
Anonymous user