You could use a regular IF...ELSE statement in T-SQL (look it up in Books Online). It's the closest T-SQL has to the IIF function.
Catadmin - MCDBA, MCSA
"No, no. Yes. No, I tried that. Yes, both ways. No, I don't know. No again. Are there any more questions?"
-- Xena, "Been There...