It looks like you're new here. If you want to get involved, click one of these buttons!
counted_tested = sets:get("counted") counted_tested = counted_tested + 1 sets:set("counted", counted_tested, true) print(sets:get("counted")) --> gives me the correct number back if sets:get("counted") <= 30 then --> gives me the error like this (attempt to compare number with nil) |
Comments
How get and set function written like?
It depends on the returned value.
Likes: GiderosFan
I think that you can also use or
my settings file look like this:
Likes: GiderosFan
1) check the type of your value
What is strange is that you have nil in the error and not "trying to compare number with string".
If that's the case, you can use tonumber(counted_tested) to "convert" it back.
2) instead of using the function as the parameter to your condition, try writing it "exploded"
Likes: GiderosFan
the code works yet thank you