HP Prime for All

English  Русский 


IF test THEN command(s) [ELSE commands] END;


Evaluates test. If test is true (non 0), executes command(s); otherwise, executes the comands in the ELSE clause nothing happens. IF A<1 THEN PRINT("A IS SMALLER THAN 1"); ELSE PRINT("A IS LARGER THAN 1"); END;

THEN — Discussion