agreed. I (personally) would classify this as unexpected behavior because (imho) would have expected IIF only to evaluate the expression that was true or false depending. But since this occurs in VBS as well I guess that Microsofts expectations are different from yours, mine and Lee's.

Put another way - its as if IIF first evaluates both expressions, than returns the required result (depending on the first expression) as opposed to evaluting the first expression first, than returning the result of only the required expression - my head hurts.

[ 08. January 2003, 19:52: Message edited by: Shawn ]