[Solved was retracted, I got lost in my code and found the real error]
Heres my code:
Config["Questions"] = {
["Receptionist"] = {
"How active are you? (1-10)",
"How good is your grammar? (1-10)",
"What does this position do?",
"Why would you like to work here?",
},
["Security"] = {
"How active are you? (1-10)",
"How good is your grammar? (1-10)",
"What does this position do?",
"Why would you like to work here?",
},
["Shift Manager"] = {
"How active are you? (1-10)",
"How good is your grammar? (1-10)",
"What does this position do?",
"Why would you like to work here?",
"What are you, (LR, MR, HR) and why?",
"You understand trolling is no way acceptable.",
},
}
print(#config["Questions"])
It prints “0” when there are things in the dictionary. How would I get how many dictionaries are inside the questions dictionary?..
You have to iterate through all the keys and count them yourself. There’s no way around it.
You can always keep track of the length yourself so you don’t have to keep counting every time you need its length. +1 when you’re inserting a new key, -1 when you’re removing a key.