But there are legitimate uses for such logic...Let me expound on the example a bit..

If $x is 5 or less it works, but will cause error when above 5, even though the second block would function.
 Code:
$array = '0','1','2','3','4','5'

$x = 50

$test = IIf($x<6, $array[$x], $array[$x mod 10])


Edited by ShaneEP (2017-11-21 09:59 PM)