basically like saying if there's only 1 thing in the dictionary then grab that and assign it to a variable
COMMUNITY QUESTION
how could i index a dicanarys first value if i know it only has one?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

7 comments
dictionary[1], but why not just use a value?
you cant index a dictionary like dictionary[1] only tables
dictionarys have Keys that correspond to values
oh right
use dictionary.1 treat it like an instance
why not loop it... or like... store the keys in a table then index the dictionary through each ordered key in the table
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