What is the arduino words for if, else condition on arduino?
Share
What is the arduino words for if, else condition on arduino?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
(condition) light_led1;
"Condition" is boolean term using "true" or "false" A "true" condition lights LED1, a "false" condition turns LED1 OFF. The Arduino compiler defines "true" as the word "true", the number 1, or any non-zero number. The compiler defines "false" with the word "false" or the number 0.
Answer:
if (condition) light_led1;
"Condition" is boolean term using "true" or "false" A "true" condition lights LED1, a "false" condition turns LED1 OFF. The Arduino compiler defines "true" as the word "true", the number 1, or any non-zero number. The compiler defines "false" with the word "false" or the number 0.