how to combine strings in lua code example
Example 1: lua how to concatenate string
--lua uses ".." to concatenate
--example
local string1="This is an "
local string2="Example"
print(string1 .. string2)
--returns "This is an Example"
Example 2: lua Concatenation
"string" .. "other string" -- returns: stringother string
Example 3: lua concatenation
-- to concatenate use two dots like this => ..
-- Example:
text1 = "Hello"
text2 = "World"
print(text1..", "..text2)