Like most languages Visual basic also uses the 'If' keyWord to implement the decision control statement. The syntax of 'If' statement is as follow
If <condition> Then
Statements ...........
.............................
End If
For Example:
Private Sub Form1_click()
Dim marks As Integer
marks= InputBox("Enter Marks : ")
If marks >60 Then
MsgBox "First Devision"
End If
End Sub
Copyright © 2026 eLLeNow.com All Rights Reserved.