Terminate and return control

After completing the test and displaying the appropriate message, the doSelection function terminates and returns control to the doSomething function shown in Listing 2.

The doSomething function finishes executing the action elements in its sequence and then terminates.