IF statement for two-way decisions
if (assets > 30000) or (income > 20000) then { approved := YES } else { approved := NO }
if (assets > 30000) or (income > 20000) then approved := YES; else approved := NO; end if;
WHILE statement for repetition:
counter := 1; while (counter <= 100) { put (counter) counter := counter + 1 }
counter := 1; while (counter <= 100) loop put (counter); counter := counter + 1; end loop;
An example program demonstrates the use of a while loop.