' Visual Basic 2008 9.0 .NET Examples - Boolean Datatype and Expressions - Introduction to Visual Basic : Module Example7 Sub Main() Console.WriteLine("Value 1 ?") Dim value1 As Integer = Console.ReadLine() ' Console.WriteLine("Value 2 ?") Dim value2 As Integer = Console.ReadLine() ' If value1 > 0 And value2 > 0 Then Console.WriteLine("Sum : " & _ (value1 + value2)) Else Console.WriteLine("Value 1 and/or 2 not positive.") End If ' Console.ReadLine() End Sub End Module ' Visit www.studyvb.com for more examples. Copyright 2003-2008 De Wolf.