Odd (frame.number & 0x01) and even !(frame.number & 0x01) are pretty easy.
(frame.number & 0x01)
!(frame.number & 0x01)