I have a dictionary that looks something like this:
local t = {
[43957] = "a",
[42498] = "b",
[85387] = "c"
}
I was wondering on how I could get the very first value in this dictionary. I can’t do t[1] because the script would think I’d be referring to a value in the dictionary with the name “[1]” (which doesn’t exist) and it would error.
I also can’t do t[43957] because I’m using an API, and that number changes every time.
That is not what I meant. In the example you provided, the names of the values in said dictionary are strings, I’m trying to find the first value in a dictionary where all the values are numbers.
And, upon testing with the code anyway, it errored.