Post Reply 
HP 48GX IFT Error: Too Few Arguments
06-17-2021, 03:54 AM (This post was last modified: 06-17-2021 03:56 AM by Giuseppe Donnini.)
Post: #2
RE: HP 48GX IFT Error: Too Few Arguments
(06-17-2021 01:46 AM)MNH Wrote:  I'm following the IFT command syntax.

You are not. For IFT to work properly, the then-sequence, that is, in your case, the CALC program, must be present on the stack as an argument. So, instead of evaluating CALC, you have to recall it to the stack, by doing 'CALC' RCL. If the flag is true, IFT will evaluate the program; otherwise, the program will simply be dropped from the stack.

Anyhow, in the present context, there is no particular advantage to using the RPN command form rather than the normal IF 9 FS? THEN CALC END form; the latter would even be shorter by 2.5 bytes.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP 48GX IFT Error: Too Few Arguments - MNH - 06-17-2021, 01:46 AM
RE: HP 48GX IFT Error: Too Few Arguments - Giuseppe Donnini - 06-17-2021 03:54 AM



User(s) browsing this thread: 1 Guest(s)