When I put a # in front of my table name, it errors because of the code in the else of the if statement. My table consists of something like this:
local erroringTable = {["s1"]={["id"]="",["desc"]="Description"}}
and when I put a hashtag in front of it,
print(#erroringTable)
is way less than it should be! It's 0! If you the answer, please reply. Thanks!

1 comment
You can't count the length of a hashtable.