Answers for "lua variables"

Lua
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
1

inline variables lua

a,b,c = 1,2,3
Posted by: Guest on March-19-2020
0

global variables lua

--[[
Global variables don't need a declaration like "local." Instead, you'd just
write like this:
]]--

variable = --value

--[[ 
Note, you don't always have to even assign a value to a variable. You can
use it for the first time and get a value of "nil" which you can update later.
]]--
Posted by: Guest on January-15-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
1

lua variables

-- Nil (no value)
-- Number => Example: 1234567890
-- String => Example: "random text"
-- Function
-- Userdata
-- Boolean (true/fanse)
-- Table
-- Thread
Posted by: Guest on April-20-2020

Browse Popular Code Answers by Language