Comment #5 on issue 194 by benoit.m... at ...626...: "IIf" is buggy http://code.google.com/p/gambas/issues/detail?id=194 And yes, I should use a different function that SUBR_check_good_type() in the IIf() implementation. That function was made for inline arrays detection.