Loop statements may have an
else
clause; it is executed when the loop terminates through exhaustion of the list (withfor
) or when the condition becomes false (withwhile
), but not when the loop is terminated by abreak
statement.
Follow the link for an example how this can be used.