The If ... Else ... statement may well be quicker; I was just thinking (maybe that's the problem) that my exp() function would be a good test for the new iif() function.
You know what it is like, a new function is introduced to KiX - you've gotta have a look, haven't you?!?!?
Like you Shawn, I would only use iif() for the more simplistic task. However, the reason for posting my original post is that I thought that the returned result was incorrect and that it may have bigger, more important consequences.
I must admit, I'm not sure that after reading your comments that this is any clearer for me!!!
I agree with you Shawn, the iif() function is merely...
code:
Function IIF($x,$y,$z)
If $x
$IIF=$y
Else
$IIF=$z
EndIf
EndFunction
But seeing as this is all my exp() function contains is the if ... else ... statement, so why can't this statement be replaced with iif()?
Although, I believe you are correct; logically speaking this is exactly what iif() does, however programatically I would have to argue that it is different!
Am I missing something?
Lee