What does this error mean?

"attempt to compare number <= string"

Does it mean I’m trying to compare a number to a string?

How could I fix this?

It means exactly what it says.
You can’t compare number <= string.
If the string is a number, use tonumber(String) instead, then compare it.

3 Likes

try adding to number to the string

1 Like