for statements each require a condition to determine how to continue an app’s flow of control. So far, we’ve studied only simple conditions, such as
count <= 10,
number != sentinelValue and
total > 1000. Simple conditions are expressed in terms of the relational operators
<=, and the equality operators
!=. Each expression tests only one condition. To test multiple conditions in the process of making a decision, we performed these tests in separate statements or in nested
else statements. Sometimes, control statements require more complex conditions to determine an app’s flow of control.
C# provides logical operators to enable you to form more complex ...