Odds and evens

any help please!

how can you determine an even or odd number? i have variable ‘time’ and want a variable called ‘vari1’ to inherit a boolean type number ( 0 or 1). this is a simple switch between two functions each minute.

thanks for any help

sifu