basically like saying if there's only 1 thing in the dictionary then grab that and assign it to a variable

7 comments

0

dictionary[1], but why not just use a value?

0

you cant index a dictionary like dictionary[1] only tables

0

dictionarys have Keys that correspond to values

0

oh right

0

use dictionary.1 treat it like an instance

0

why not loop it... or like... store the keys in a table then index the dictionary through each ordered key in the table

0

we if i wanted sense i know there is only one value i could use i for i, v in pairs() loop and and get it bc there is only one value but that is a work around its not very clean