Another way of writing your incorrect statement is:
Code:
x = 5
If Not x = 1 Then
If 2 Then
If 3 Then
x = 5 + 1
Else
x
End If
End If
End If
Another way of writing the correct statement is:
Code:
x = 5
If Not x = 1 Then
If Not x = 2 Then
If Not x = 3 Then
x = 5 + 1
Else
x
End If
End If
End If