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

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


Invision Support
#Invision on irc.irchighway.net