else.bmx 264 B

1234567891011121314
  1. Rem
  2. Else provides the ability for an If Then construct to execute a second block of code when the If condition is false.
  3. End Rem
  4. i=3
  5. If i<5 Print "i<5" Else Print "i>=5" ' single line If Else
  6. If i<5 'block style If Else
  7. Print "i<5"
  8. Else
  9. Print "i>=5"
  10. EndIf