To concatenate strings, use the operator ..:
local c = “Hey “
local b = c..”nmaper!”
print(b)
The output will be as follows:
Hey nmaper!
String to number (and viceversa) conversion is done automatically by Lua.
To concatenate strings, use the operator ..:
local c = “Hey “
local b = c..”nmaper!”
print(b)
The output will be as follows:
Hey nmaper!
String to number (and viceversa) conversion is done automatically by Lua.
There will be a lot of occasions when you will need to know if a certain string is a substring of another string object, for example, to match the response of a network request. We can do this with Lua in a few different ways with the help of the following functions:
string.find(s, pattern [, init [, plain]])
string.match(s, pat)
string.gmatch(s, pat)
The function string.find returns the position of the beginning and end of the string occurrence, or nil if not found. It...
Change the font size
Change margin width
Change background colour