Arduino If statement - Arduino

What is Arduino If statement?

It takes an expression in parenthesis and a statement or block of statements. If the expression is true then the statement or block of statements gets executed otherwise these statements are skipped.

Different forms of if statement

Form 1

You can use the if statement without braces { } if you have one statement.

Form 2

If Statement Execution Sequence

Arduino - If statement


All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd Protection Status

Arduino Topics