IF...THEN...ELSE敘述

'Conditional Statements
'   IF...THEN...ELSE Statements
'   It conditionally executes a group of statements, depending on the expressions. If the
'   expression In If statement is True, the statements In the Then block are executed. Otherwise
'   the statements In the Else block are executed.

Sub Main()

   
Dim a,b,Max As Integer
   
   
Debugin "Enter the First Number:", a, CR
   
Debugin "Enter the Second Number: ", b, CR
   
   
If a < b Then               'Compare a and b and set the bigger number as Max.
        Max = b
   
ELSE
        Max = a
   
End If
   
   
Debug "Max is:", Max

End Sub