Hi to all,
I´m learning how to code for arduino and I found in a sketch the following line:
Serial.print(rotationValue < 1 ? "L" : "R");
rotationValue is only a int variable. I can´t understand the other commands, < 1 ? "L" : "R".
L or R are only symbols to be printed, but the meanig of the command is completely nonsense to me. It works but I don´t know why! Could someone help me?
Regards to all
Alfredo
Take a search engine of your choice and ask the WWW for 'ternary operators +arduino' to collect some data to be sorted out to get the needed information.