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 Register a command in Lua 
Lua :: roblox script to create brick 
Lua :: lua string 
Lua :: roblox format string 
Lua :: while main.lua 
Lua :: random number lua 
Lua :: lua stack 
Lua :: insert item array pico8 
Lua :: lua hash keys 
Lua :: lua teleport 
Lua :: lua table of all characters 
Matlab :: matlab get row from matrix 
Matlab :: sum vs symsum in matlab script 
Matlab :: how to implement a timer in designer in matlab 
Matlab :: matlab avoid plot to get focus 
Basic :: how to open d drive using conda prompt 
Basic :: Detailview with form mixing 
Basic :: visual basic non modal message box 
Elixir :: elixir enum flat_map 
Elixir :: elixir pick out elements in list 
Scala :: Scala methods 
Scala :: scala list all permutations 
Actionscript :: mount_osxfuse: /Users/em/mount_dev: Input/output error 
Excel :: excel or function 
Perl :: unique in perl 
Pascal :: pascal input format check 
Powershell :: Download attachment from Jira task to local filesystem 
Clojure :: clojure read file 
Assembly :: flops in deep learning 
Assembly :: what do you mean by io address and memory address 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =