Jump to content




Openperipherals Sensor Block


  • You cannot reply to this topic
1 reply to this topic

#1 kkr476

  • New Members
  • 1 posts

Posted 13 June 2015 - 07:39 PM

hi this doesnt work how do i get it work work?
s = 2 and 4 and aimedsquirrel;
print(s);

Edited by kkr476, 19 February 2016 - 12:56 AM.


#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 13 June 2015 - 10: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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users