BCX Console Demonstration Program s102.bas

 DIM A
 
 INPUT "Enter No. 1, 2, Or Other >> ", A
 
 IF A = 1 THEN
   ?  "One"
 ELSEIF A = 2 THEN
   ?  "Two"
 ELSE
   ?  "Something Else"
 END IF

Result:


 Enter No. 1, 2, Or Other >> Other
 Something Else