Content deleted Content added
Matthiaspaul (talk | contribs) m CE |
m v2.05 - Fix errors for CW project (Template without correct beginning - Spelling and typography) |
||
Line 9:
| developer =
| latest_release_version = <!-- X.Y.Z/{{release date|df=yes|YYYY|MM|DD}} -->
| latest_release_date = 2012-04-26<!-- HP 50g 2.16 --><ref name="HP_4">http://h41268.www4.hp.com/live/index_e.aspx?qid=20709&jumpid=va_r11363_us/en/any/tsg/pl_ot_ob_ds_pd/calculatoremulators_cc/dt
| discontinued = 2015<!-- HP 50g -->
| typing =
Line 44:
« IF 1 == THEN "Equal to one" END »
The IF construct evaluates the condition then tests the bottom of the stack for the result. As a result, RPL can optionally support FORTH-style IF blocks, allowing the condition to be determined before the block. By leaving the condition empty, the IF statement will not make any changes to the stack during the condition execution and will use the existing result at the bottom of the stack for the test:
« 1 == IF THEN "Equal to one" END »
|