Closed
Description
Hello I just discovered the the Serial.print() function can be used with conditional testing :
Serial.print(test ? "test=true" : "test=false");
If the "test" variable is true then the output will be :
test=true
If the "test" variable is false then the output will be :
test=false
I just thought this function could appear somewhere in the Serial.print() reference documentation