FANDOM


:If condition:Then:commands:Else:commands:End

When inserted into an If/Then statement, this will cause any commands after it to be performed if the If condition is false.

Location Edit

  • Prgm
  • CTL
  • 3:Else

Example Edit

:Input "NUMBER",X
:If X=5:Then
:Disp "YOUR NUMBER IS 5"
:Else
:Disp "NOT 5"
:End

This program will ask the user to input a number. If the number is 5, it will display "YOUR NUMBER IS 5". If the number is not 5, it will display "NOT 5"