NXC: a<b? c: d // ==>> compiler error
Posted: 04 Feb 2011, 21:30
hi,
I'm getting a compiler error with this line:
I'm getting a compiler error with this line:
Code: Select all
int SoundLevel, BGrndNoise, p;
SoundLevel<BGrndNoise ? p++ : p=0;
what may be wrong (Bricxcc 3.3.8.9. 2010-11-03)# Error: Invalid assignment
File "c:\Temp\temp.nxc" ; line 43
# SoundLevel<B
#----------------------------------------------------------
# Error: ';' expected
File "c:\Temp\temp.nxc" ; line 43
# SoundLevel<B
#----------------------------------------------------------