xxxxxxxxxx
print("text here")
-- or
extra = "more text"
print("text here " .. extra)
xxxxxxxxxx
-- print "Hello, World!
print("Hello, World!")
-- or
x = "Hello, World!"
print(x)
xxxxxxxxxx
print("text"..v) -- "" for strings, '..' to concencate, type name of variable to print variable
xxxxxxxxxx
print('string')
local MyNumber = 69
print(MyNumber)
local myString = 'Hello World'
print(MyString) -- notice that for this string varible, you don't need to put a comma
local IsTrue = true
print(IsTrue)
xxxxxxxxxx
print("Hello world") -- prints a message into the console, which is called a string..
-- IF YOU WANTED TO USE A VARIABLED vv
local x = "Hello!" -- a variable has a value, for this case, a string.
print(x) -- We still print it in the console, it's that it's a nice, faster way of doing it.
-- Also helpful if you want to re-use code if it's used a lot in a program you make..