how to use else if in arduino code example
Example 1: arduino if-else
if (condition1) {
// Tue Task 1
}
else if (condition2) {
// Tue Task 2
}
else {
// Tue Task 3
}
Example 2: if arduino
if (condition) {
//statement(s)
}
if (condition1) {
// Tue Task 1
}
else if (condition2) {
// Tue Task 2
}
else {
// Tue Task 3
}
if (condition) {
//statement(s)
}