help on cursor/if statement code

Printable View