case 1 does not loop because the "until" condition is met immediately ($i=1 which is less then 10).
In reply to Re: scoping inside the loop by hdb in thread scoping inside the loop by vyeddula