i need to take a number and check if it is even or odd, however i actually have no idea how to do that in lua. after searching i found for lua itself a solution to use math.mod but it seems that isn't in computercraft or not enabled by default.
here is a sumocode of what i want to do
print enter width width = userinput print enter length length = userinput if x is even turn right move back xwidth turn right move back xlength end if x is odd turn left move back xwidth turn left move back xlength end












