Posted 22 June 2013 - 09:52 PM
Pretty simple. I'm putting in tonumber(x), the program goes through, then when I come to the main while loop of my program, which is locationX < x, it says something along the lines of "attempt to compare number to string; got string", something like that. For reference, locationX was a variable that I initially declared as a number and x is a variable that was entered by the user and is supposed to be converted to a string from a number.