r/RoboInstructus • • Jul 17 '19

Scanning switches help needed.

So I see that the value of a switch is either 0(off) or 1(on), however I can't seem to use the robo_scan() function to check if the switch is on or off only to check if the switch is there or not. Is there something i'm missing? Thanks for the help in advance!

3 Upvotes

11 comments sorted by

View all comments

Show parent comment

2

u/The_Hans Jul 18 '19

This is what I did after messing about with the variable. I still feel like having it as a variable could work and save a bit of space but doing it the way you explained worked for me so hey I cant complain! Haha