Home Segments Top Top Previous Next

466: Mainline

When there is no break or return statement to terminate the execution of a sequence of statements, execution is said to fall through to the next sequence of statements, where execution continues, once again, in search of a break or return statement.

The reason for the fall-through feature is that you occasionally want to perform the same action in response to any of several conditions.

Note carefully, however, that inadvertently forgetting a break or return statement is a common error.