Correct Usage Of Dictionary

Okay I seems that both ways work but which one would be correct one?

First Way:


Second Way:

That’s all thanks!

1 Like

It doesn’t really matter but if you want the key to have a space in it you have to use the first one.

Does the space make any difference?

Wouldn’t an array table of booleans suit this situation better?

local jars = table.create(30, false)

jars[4] = true
print(jars[1], jars[4], jars[28]) -- false true false