s += (val)?"high":"Low";
If val is true append "high" to the String s else append "Low" to it
The C ternary operator in all its glory.
s += (val)?"high":"Low";
If val is true append "high" to the String s else append "Low" to it
The C ternary operator in all its glory.