This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
TheShadowView's profile picture

Possibly ignoring ~=?

Started by TheShadowView, 04 August 2017 - 06:11 PM
TheShadowView #1
Posted 04 August 2017 - 08:11 PM
I'm trying to make a simple program where a mining turtle will take user input and dig a rectangular prism of that size. It gets one layer done, doesn't return to its starting position and digs the wrong way. I think its not working on the line with if s~=x. I had the program print the values of s and x before it compared them and even when they are the same it still does what is in the if statement. Any help would be greatly appreciated.

Here is the code:
https://drive.google...blNPV3h2WWxuc2c
Bomb Bloke #2
Posted 05 August 2017 - 01:55 AM
s is a number, x is a string. Try "tonumber(read())".