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

Openperipherals Sensor Block

Started by kkr476, 13 June 2015 - 06:39 PM
kkr476 #1
Posted 13 June 2015 - 08:39 PM
hi this doesnt work how do i get it work work?
s = 2 and 4 and aimedsquirrel;
print(s);
Edited on 18 February 2016 - 11:56 PM
Lyqyd #2
Posted 13 June 2015 - 11:08 PM
You can't store two different values in the same variable, so you should decide what you want the "s" variable to hold (the wrapped sensor peripheral, or a 1 if "aimedsquirrel" is present) and change one or the other to a different name.