For odd/even, it's as simple as:

$iif($calc(number % 2) == 1,EVEN,ODD)