APCO 1P93 Lecture Notes - Lecture 7: Boolean Algebra, Boolean Expression
Document Summary
A decision structure (or selection structure) allows a program to perform actions only under certain conditions. Different types of decisions include: if, also called single alternative, if then else, also called dual alternative, case structure for multiple alternative decisions. The if statement: an action only occurs if the decision is true. End if: a diamond symbol is used in flowcharts. Figure 4-1 a simple decision structure for an everyday task. Determines whether a specific relationship exists between two values: used within the condition, a boolean expression, x > y x=y x