(originally posted in non-public section)
Is there a logical NOT operator in robotC? I looked around and I can't see one referenced (web searches... I don't have robotC with me at work right now). My team wants to make an indicator light on their robot follow the state of a switch, and since the lights are on when the output is off, having a not operator would make this simple.
I was hoping for a "teaching moment" in programming about logic, boolean values, etc with this.
Wanting to do something like...
sensorvalue(LEDoutput) = !sensorvalue(switchinput)
I realize this isn't correct, but that was what I was thinking of... :-)