User Tools

Site Tools


ugbasic:user:if_..._then
Translations of this page:


ugBASIC User Manual

IF ... THEN

SYNTAX

  • IF [ expression ] THEN

PURPOSE

Implement the conditional jump. This implementation assumes that an expression passed as a parameter is 0 (for false) and not zero (for true). In this case, if the expression is zero, it jumps directly to the statement following the corresponding ENDIF. Otherwise, the following code will be executed (up to ENDIF).

EXAMPLE

 IF ( x == 42 ) THEN

AVAILABLE ON

  • Commodore 64
  • ZX Spectrum 48K

SEE ALSO