What I have already tried:
repeat turtle.detectUp() until turtle.detectUp()then it runs the code, I also tried
repeat turtle.detectUp() until turtle.detectUp() = true
Edited by astonish01, 26 October 2015 - 01:04 AM.
Posted 26 October 2015 - 01:03 AM
repeat turtle.detectUp() until turtle.detectUp()then it runs the code, I also tried
repeat turtle.detectUp() until turtle.detectUp() = true
Edited by astonish01, 26 October 2015 - 01:04 AM.
Posted 26 October 2015 - 01:49 AM
Posted 26 October 2015 - 03:30 AM
Anavrins, on 26 October 2015 - 01:49 AM, said:
""program name":3 attempt to compare string with number expected, got string"Actual testing code:
print("test") local t1 = ( read() ) if t1 > 64 then t1 = t1-64 else print(t1) end print(t1)
Posted 26 October 2015 - 03:38 AM
local t1 = tonumber(read())
local t1 repeat t1 = tonumber(read()) until t1 -- Keep bugging the user to type stuff until t1 is not nil.
0 members, 1 guests, 0 anonymous users