Conditional Statements

IF.....Then

     ...

  Else

    ...

  End IF


  Select case

   case :

       ......

   case is = :

       .....

   case Else

       .....

   case to

  End Select


Example :


   Select case iAge

    case is < 5:

       iRest=MsgBox("Too Young")

    case 5:

       iRest=MsgBox("Ok")

    case 6 to 11:

       iRest=MsgBox("Just Right")

   end select


Condition statements are very important when logic needs to be fine tune specially when it comes to complex applications.

 

Do note that everything has a certain limit in which effectiveness is guaranteed and we are sure that our program flow is correct.