Answers for "lua variable"

2

lua local

local name = "jojo"
print("Hello, "..name)
Posted by: Guest on March-02-2020
2

lua make variable global

varname = varval
Posted by: Guest on March-19-2020
2

lua variables

local NumberVariable = 1
local StringVariable = "TextHere"
local BooleanVariable = true --// can also do false
Posted by: Guest on April-03-2020
2

lua variable

-- Private Variable
local name1 = "John"

-- Public Variable
name2 = "Jane"

print(name1)
print(name2)
Posted by: Guest on March-02-2020
0

lua variable

local test = "lol"

print(test)


-- it will print lol
Posted by: Guest on July-11-2021
1

Lua variable

-- Variables are global by default:
globalVariable = 10
-- To make a variable local:
local localVariable = 20
Posted by: Guest on December-03-2020

Browse Popular Code Answers by Language