iif is evaluated kinda odd.
the true and false expressions are calculated before the if part kicks in.
thus, it is infinite loop you got there.
_________________________
!

download KiXnet