June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
25
Task/Conditional-structures/VBA/conditional-structures-1.vba
Normal file
25
Task/Conditional-structures/VBA/conditional-structures-1.vba
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
Sub C_S_If()
|
||||
Dim A$, B$
|
||||
|
||||
A = "Hello"
|
||||
B = "World"
|
||||
'test
|
||||
If A = B Then Debug.Print A & " = " & B
|
||||
'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."
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue