How to calculate if a number is even or odd

Dear all,

I would like to use the distiction of when the interview number is odd or even as the main criteria for continuing the survey or not. I guess I will have to do it with calcuate function, but what to write exactly after? Should I use the funcion mod? If yes, how does it work exactly?

Thanks a lot for your help and support

Marcello

If would imagine you’d simply do: interview_number mod 2 = 0

That would give you a boolean result.

···

On Monday, 6 June 2016 13:49:59 UTC+2, marcel...@gmail.com wrote:

Dear all,

I would like to use the distiction of when the interview number is odd or even as the main criteria for continuing the survey or not. I guess I will have to do it with calcuate function, but what to write exactly after? Should I use the funcion mod? If yes, how does it work exactly?

Thanks a lot for your help and support

Marcello