User Tools

Site Tools


string

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
string [2020/01/17 18:24] justinstring [2020/01/19 16:33] justin
Line 17: Line 17:
 ====Example:==== ====Example:====
 <code lua> <code lua>
-set_entity_property(entity["sign_01"], "message", "This is the sign's \"message\".")+set_entity_property(entity["sign_01"], "message", "The sign's \"message\".")
 </code> </code>
  
Line 23: Line 23:
  
 =====String Concatenation===== =====String Concatenation=====
-Strings can be concatenated, or connected together, using the plus symbol between two or more values. These values can be either a literal string (e.g. "Hello!"), variable name (e.g. my_string), or a reference to a property (e.g. global.property["my_string"]). The assumption is made that the variable or property contains a valid string value that can be appended to another string. This syntax can be used in most places where a string value is expected.+Strings can be concatenated, or connected together, using the plus symbol between two or more values. These values can be either a literal string (e.g. "Hello!"), variable name (e.g. my_string), or a reference to a property (e.g. global.property["my_string"]). The assumption is made that the variable or property contains a valid string value. This syntax can be used in most places where a string value is expected.
  
 ====Example:==== ====Example:====
string.txt · Last modified: 2021/04/21 20:07 by justin