Controls Used for If Statements

The application user interacts with your code, including If statements, through the GUI of your application. Two controls in particular are used in conjunction with If statements. The CheckBox control is used when a particular decision has only two choices, as in True or False, Yes or No, and so on. The CheckBox control also is useful when more than one option can be selected, such as various toppings for a pizza, of which you could choose all, none, or any combination. The RadioButton control is used when there are multiple, mutually exclusive choices.

Was this article helpful?

0 0

Post a comment