Conditional structures: Difference between revisions

→‎If Else End If: add a syntax
(→‎If Else End If: add a syntax)
Line 5,642:
End If
'other syntax
If A = B Then
Debug.Print A & " = " & B
Else: Debug.Print A & " and " & B & " are differents."
End If
'other syntax
If A = B Then Debug.Print A & " = " & B _
Else Debug.Print A & " and " & B & " are differents."
'other syntax
If A = B Then Debug.Print A & " = " & B Else Debug.Print A & " and " & B & " are differents."
If A = B Then Debug.Print A & " = " & B Else: Debug.Print A & " and " & B & " are differents."
End Sub</lang>
 
===If ElseIf Else End If===
<lang vb>Sub C_S_ElseIf()
1,392

edits