hi,
how to recognize even or odd numbers?
Thank you very much!
hi,
how to recognize even or odd numbers?
Thank you very much!
use the MOD (Value) node with second input set to 2 and use a NOT (Boolean) to inverse the result, this gives you a spread of 0/1 values for even/odd numbers.
number to test > left input of ‘mod’
right input of mod set to 2
mod output will be 0 if even, 1 if odd
thank you very much :D