if else statement in arduino programming code example
Example 1: arduino what is #if
The #if condition is evaluated only at compile time. The "if" is evaluated at run time.
Example 2: arduino if else
if (condition1) {
// do Thing A
}
else if (condition2) {
// do Thing B
}
else {
// do Thing C
}
Example 3: if arduino
pinMode(LED_BUILTIN, OUTPUT);