Search
 
SCRIPT & CODE EXAMPLE
 

LUA

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"
Comment

lua Concatenation

"string" .. "other string" -- returns: stringother string
Comment

lua concatenation

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

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

print(text1..", "..text2)
Comment

PREVIOUS NEXT
Code Example
Lua :: how to get the length of a table in lua 
Lua :: Random Map in roblox 
Lua :: roblox number between 1 and 10 
Lua :: lua list of all keys 
Lua :: lua how to make a loop 
Lua :: how to print in lua 
Lua :: roblox how to detect human touchinhg 
Lua :: fivem commands example lua 
Lua :: Lua How to check what index belongs to value 
Lua :: lua print table 
Lua :: lua concatenation 
Lua :: roblox format string 
Lua :: lua to integer 
Lua :: insert item array pico8 
Lua :: how to check if table is clear 
Lua :: lua table of alphabet 
Matlab :: matlab count elements in matrix 
Matlab :: matlab complex numbers 
Matlab :: matlab avoid plot to get focus 
Basic :: excel vba chck that the range is empty 
Basic :: floppy disk drive +arduino 
Elixir :: elixir ecto query to sql 
Elixir :: elixir with syntax 
Scala :: scala length of string 
Scala :: scala learn 
Excel :: google sheets stack columns 
Excel :: google sheets apply formula to entire column 
Perl :: perl mechanize infinite scroll with attempt count 
Pascal :: pascal special characters 
Gdscript :: gdscript while loop 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =