Post Reply 
HP49-50G : test IF THEN 'Instruction1' END ≠ test 'Instruction1' IFT
03-28-2021, 04:39 AM
Post: #2
RE: HP49-50G : test IF THEN 'Instruction1' END ≠ test 'Instruction1' IFT
(03-27-2021 07:17 PM)Gil Wrote:  HP49-50G
test IF THEN 'Instruction1' END ≠ test "Instruction1“ IFT

Try the following program with
\<< 5 6 <
IF
THEN 's<?s.0'
END 5 6 < 's<?s.0' IFT
\>>

With the IF.. THEN 'Instruction1' END : it works.
With the 'Instruction1' IFT : it does not work.

Of course, 5 6 < "s<?s.0" IFT works, but the quotation marks are not so nice...

Regards,
Gil Campart

In the second case, you may want to use << 's<?s.0' >> if you want to place an algebraic expression on the stack. The reason is that IFT can use both programs (encapsulated with << and >>) or algebraic expressions as an operand to evaluate. Thus, what happens is that it tries to evaluate the algebraic expression as if it were a program.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP49-50G : test IF THEN 'Instruction1' END ≠ test 'Instruction1' IFT - Han - 03-28-2021 04:39 AM



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