“wie man in lua druckt” Code-Antworten

Lua -Druck

print("text here")

-- or

extra = "more text"

print("text here " .. extra)
RexNC

Lua -Druck

-- print "Hello, World!

print("Hello, World!")

-- or

x = "Hello, World!"
print(x)
Lazy Lizard

Lua Print Hi

print("Hi") --prints hi
Bloody Bat

wie man in lua druckt

print("text"..v) -- "" for strings, '..' to concencate, type name of variable to print variable
Obnoxious Owl

wie man in lua druckt

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..
Opal

Ähnliche Antworten wie “wie man in lua druckt”

Fragen ähnlich wie “wie man in lua druckt”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen