Sorry to reply to such an old thread, but since a recent post was created that referenced this one, which referenced another one from the OLD board I thought I would provide the current link that Jens referenced so others don't have to search for it.

iif() stack overflow exception "problem"?
#79079 - 08/01/2003 09:27
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Number=79079

This post was referenced from a newer post by Bryce here

IIF() is executing both conditions
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Number=122731