You're just getting OLD there Glenn. As I recall you and I were some of the first to run into this issue. Got into conversation with Shawn and Jooel over it years ago as what looked like perfectly good code was giving the wrong response.

But true, unless it's very simple code you should probably avoid IIF in production.