Conditional Statements & Event Handling: How Do I Control the Program Flow and Make the Program React to User Actions and Other Events?
摘要
In the last chapters you have already seen that there are two ways of branching in the program flow: linear with If-Else constructs and event-driven with event handlers. In this chapter we will take a closer look at these important concepts that allow different parts of the program code to be executed depending on the situation.