$i > 1 and $a = function_that_may_fail() and $i++ or $i = 1;