CS100 Chapter Notes - Chapter 6: Exclusive Or
Document Summary
End if equals to greater than less than greater than or equal to less than or equal to not equal to. General form of a decision using an if statement. Conditions: a comparison between 2 or more things that is true e. g. if hair colour = (comparison operator) brown then we are comparing the variable hair colour and checking if it is holding the word brown . It it is, then the condition is true, and the if statement will work. If age > 18 and citizen = canadian then. If you need to check only one variable, and you will be examining multiple possibilities then the case statement can be used for decisions. Select case name (the variable we are checking) case rebecca case tim case else. When this case statement runs, the word erase will be shown in the label.