|
I've sort of solved my problem, but not in a way which really makes
total sense. Both of the below fragments work as expectd:
#1 if ((SensorValueRaw(1) & SensorValueRaw(0)) != 255)
#2 if ((SensorValueRaw(1) != 255) || (SensorValueRaw(0) != 255))
Number two is obvious but rather verbose, number one is just wierd!
Since I'm accustomed to Perl which allows extreme lazyness I would have
thought that I could just do this:
if ((SensorValueRaw(1) || SensorValueRaw(0) != 255))
But that does not work. Is this normal in NQC?
Chris"at"superfami"dot"com
|
|
Message has 1 Reply:
Message is in Reply To:
6 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|