3 Module ConditionalStatementsB
\r
9 ' With the single-line form, it is possible to have multiple
\r
10 ' statements executed as the result of an If...Then decision.
\r
12 If i = 0 Then i += 1 : i += 2 : i += 3
\r
15 If i <> 6 Then throw new exception("#CSB1 - LineIfThenStatement failed") _
\r
16 else i += 6 : i += 12
\r
20 throw new exception("#CSB2 - LineIfThenStatement failed")
\r
23 ' Execution of a Case block is not permitted to "fall through" to
\r
24 ' next switch section
\r
26 Dim j As Integer = 0
\r
39 throw new exception("#CSB3 - Switch Case Statement failed")
\r