until loops evaluate the conditional first. The behavior is changed by applying a
do block before the conditional. With the
do block, the condition is evaluated last, which results in the contents of the block always executing at least once (even if the condition is false). This is similar to the C language
do ... while (conditional) statement.