Mega Code Archive

 
Categories / VB.Net Tutorial / Statements
 

Nested if statement

Option Strict On  Imports System  Module Module1     Sub Main( )        Dim temp As Integer = 32        If temp <= 32 Then           If temp = 32 Then              Console.WriteLine("temp = 32")           Else              Console.WriteLine("Temp: {0}", temp)           End If        End If      End Sub   End Module temp = 32