I find I occasionally need to determin if a value is odd or even when coding and use the mod operator to determine this state. I think a simple couple of functions would come in handy for this purpose to simplify things.

**even(value)**

Returns true (-1) if the value is even or false (0) if value is odd.

```
registercustomfunction "EVEN(",1,{?(•1 mod 2=0,-1,0)}
```

**odd(value)**

Returns true (-1) if the value is odd or false (0) if value is even

`registercustomfunction "ODD(",1,{?(•1 mod 2≠0,-1,0)}`