2021-02-22 17:48:14 +00:00

315 B

IF

If statement is used to evaluate expression and make decisions.It has following forms

  1. IF expr1 condition expr2 THEN GOTO line number
  2. IF expr1 condition expr2 THEN GOTO line number ELSE GOTO line number

This is used to change execution flow based on conditions. Conditions can be as complex expressions