t = {
["text"] = "Hello world !"
}
print(t["text"])
> Hello world !
t[exemple] = "1234"
print(t[exemple])
> 1234
local table = {
myFirstValue = "helloWorld",
mySecondValue = "hi"
}
assert(table.myFirstValue == "helloWorld")
assert(table["mySecondValue"] == "hi")
Code Example |
---|
Lua :: lua roblox global variables |
Lua :: lua find key in table |
Lua :: lua hello world function |
Lua :: wait() in lua |
Lua :: lua while loops |
Lua :: while true do lua |
Lua :: roblox random number generator |
Lua :: roblox check if in private server |
Lua :: lua print |
Lua :: countif excel |
Lua :: Lua How to check what index belongs to value |
Lua :: how to make everyone on team see name roblox |
Lua :: how to make variables in lua |
Lua :: subsgtitute string R |
Lua :: lua patterns |
Lua :: C++ 914 card |
Lua :: lua print hi |
Matlab :: switch matlab |
Matlab :: matlab make symbolic matrix |
Matlab :: Load .mat data in Matlab |
Basic :: tmux basic commands |
Basic :: script to add value of 2 coulms of grid and show result in 3rd column |
Elixir :: elixir get_in |
Elixir :: phoenix run test |
Scala :: scala split string to list |
Scala :: repartition in spark scala |
Excel :: google sheet split text |
Perl :: perl slice array |
Pascal :: pascal input |
Powershell :: takeown cmd |