Syntax Flashcards
1
Q
What is the syntax for:
If
A
If [condition]
[statement if true]
End If
2
Q
What is the syntax for:
If-Then-Else
A
If [condition] [statement if true] Else [statement if false] End If
3
Q
What is the syntax for:
Switch
A
Select Case [boolean expression] Case [condition-n] [statements-n] Exit Select Case Else [condition-else] [statement-else] Exit Select End Select
4
Q
What is the syntax for:
For
A
For [variable] As [datatype] = [start value] To [end value] Step [number of steps]
[statement]
Exit For ‘ Stops executing the For statement
[statement]
Next [variable]