Visual Basic Simple If Statement Examples
If intAge >= 18 Then
MsgBox( “Able to Vote”)
End If
If intScore >= 100 Then
MsgBox( “Perfect Score”)
strGrade = "A"
End If
If intAge < 21 Then
MsgBox( “Underage”)
End If