Modify remove redundant iif function (already defined in Indy10)