if even arduino code example
Example: arduino even or odd
if ( (i % 2) == 0) { do_something(); } //Number is even
if ( (i % 2) == 1) { do_something(); } //Number is odd
if ( (i % 2) == 0) { do_something(); } //Number is even
if ( (i % 2) == 1) { do_something(); } //Number is odd