Answers for "lua how to concatenate string"

Lua
3

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"
Posted by: Guest on March-14-2021
0

lua Concatenation

"string" .. "other string" -- returns: stringother string
Posted by: Guest on March-19-2020
1

lua concatenation

-- to concatenate use two dots like this =>  ..

-- Example:
text1 = "Hello"
text2 = "World"

print(text1..", "..text2)
Posted by: Guest on April-20-2020

Browse Popular Code Answers by Language