RosettaCodeData/Task/Conditional-structures/Visual-Basic-.NET/conditional-structures-2.visual

14 lines
259 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
Dim result As String, a As String = "pants", b As String = "glasses"
If a = b Then result = "passed" Else result = "failed"
If a = b Then
result = "passed"
Else : result = "failed"
End If
If a = b Then : result = "passed"
Else
result = "failed"
End If