First Steps with Lua - VariablesDeutsch


You are here:LuaVariables


Variables in Lua

Test-Programm variable_1.lua
print( var )
var = "Hello World"
print( var )
The Result:
nil
Hello World

Test-Programm variable_2.lua
print( var1, var2 )
var1, var2 = 1, 4
print( var1, var2 )
The Result:
nil	nil
1	4