1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Else if in VB.NET

Discussion in 'Visual Basic ( VB )' started by Fatima Khan, Jul 2, 2010.

  1. Fatima Khan

    Fatima Khan New Member

    Joined:
    Feb 20, 2010
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Pakistan
    Can we use the if and else if both together in VB.net ? what is the syntax ?
    Please reply me soon. please.
    regards.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    As far as I remember it should be

    Code:
    If <condition> Then
    	<statements>
    ElseIf <condition> Then
    	<statements>
    Else
    	<statements done if all conditions false>
    End If
    
     

Share This Page