The **WaitForSignal** code provides a recipe to *wait for an external signal and take a different code path if the signal is received*.