How Can I compare Even Integers to Odd?

I want to to skip every other integer or odd integers, how can I do this?

You can use Modulo function(your integer to top input and 2 to the bottom) to get the remainder of the integer when it is divided by 2. If the result is greater than 0 it means the integer was an odd number.


1 Like

Thank you

1 Like

You could also use bitwise operators. I don’t fully understand them myself but they are extremely powerful and efficient operators! Here’s a quick way to find if a number is odd or even:

Even is true; odd is false.


thanks for this comment, love seeing new functions of execution!


I think you got that mixed up. True is Odd, and False is Even