Syntax Flashcards

1
Q

What is the syntax for:

If

A

If [condition]
[statement if true]
End If

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the syntax for:

If-Then-Else

A
If [condition]
   [statement if true]
Else
   [statement if false]
End If
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly