Wyo VB Lecture Notes

Objective #1: Write Boolean expressions.

The string concatenation operator is not an arithmetic operator, but in precedence it does fall after all arithmetic operators and before all comparison operators. Similarly, the Like operator, while equal in precedence to all comparison operators, is actually a pattern-matching operator. The Is operator is an object reference comparison operator. It does not compare objects or their values; it checks only to determine if two object references refer to the same object."

You probably will not have to use the
Like, Is, Xor, Eqv, and Imp operators very often, however the information above may still be useful to you. Those operators will not be covered on tests or quizzes for this course.

Objective #2: Use If statements to ensure that certain statements are executed only when a given condition applies.

Objective #3: Use If Else and If ElseIf statements to select which of two sequences of statements will be executed, depending on whether a given condition is TRUE or FALSE.

Objective #4: Use the Mod operator to test divisibility.

You could say that the rule is "when the Mod of two numbers is zero, then the first number is evenly divisible by the second number." Or, one could say that "when the Mod of two numbers is zero, then the first number is a multiple of the second number."

Objective #5: Use Select Case statements for multiple selection.