‹header›
‹date/time›
Click to edit Master text styles
Second level
Third level
Fourth level
Fifth level
‹footer›
‹#›
And and Or are binary operators requiring two operands
Not is a unary operator requiring only one operand
Not (n < 6) = False
(answ = "Y") Or (answ = "y") = True
(answ = "Y") And (answ = "y") = False
Not(answ = "y") = True
Note the nested if statement – the If inside an If.  This can be rewritten using the ElseIf construct.
No matter what the user enters in the text box, the quote will appear.
An extension of the If block allows for more than two possible alternatives with the
inclusion of ElseIf clauses.
Note:  there is no space between the word "Else" and "If"
Only one "End If" is required.
Note:  there is no "if" required after the last Else to determine if the two numbers are equal.  There have already been if statements to evaluate if num1 is larger than num2 and if num2 is larger than num1, so if the last Else is reached, there is no other alternative left but that they are both equal.
Note ElseIf construct replaces nested If statement.  Only one "End If" is required with the ElseIf.
A Select Case block is an efficient decision-making structure that simplifies choosing among several actions. It avoids complex nested If constructs. If blocks make decisions based on the truth value of a condition; Select Case choices are determined by the value of an expression called a selector. Each of the possible actions is preceded by a clause
of the form
Case valueList
where valueList itemizes the values of the selector for which the action should be taken.
The keyword "To" allows the programmer to specify a range of values in the value list. The keyword "Is" allows the programmer to form a relational expression with the selector