IF <expr1> [= | < | >] <expr2> THEN ….. [ELSE …..]

Does conditional evaluation of expressions.

If numApples > 3 THEN PRINT “Plenty” ELSE GOTO 100

Tip: If yor program shows strange behavior, check your IF statements. Freebasic does not recognize a missing THEN in the "IF ... THEN GOTO "statement (no error message occurs if your write "IF ... GOTO" without THEN), but the GOTO will never be executetd.

Siehe auch: Flow Control

Referenz - Startseite