RPL (programming language): Difference between revisions

Content deleted Content added
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}}{{dead link|date=April 2018 |bot=InternetArchiveBot|fix-attempted=yes}}</ref><ref name="HP_7">http://www.calculatrices-hp.com/index.php?page=emulateurs<!-- https://web.archive.org/web/20170917223308/http://www.calculatrices-hp.com/index.php?page=emulateurs --></ref><ref name="HP_5">{{Cite web|url=http://www.hpmuseum.org/forum/thread-4405-post-39600.html|title=Emulator of HP 50g with #2.16 ROM}}</ref><ref name="HP_6">http://www.calculatrices-hp.com/uploads/emulateurs/HP50gVirtualCalculatorSetup_3_1_30.zip<!-- https://web.archive.org/web/20170917095533/http://www.calculatrices-hp.com/uploads/emulateurs/HP50gVirtualCalculatorSetup_3_1_30.zip --></ref>
| 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 »