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,375
    Likes Received:
    388
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice