cancel
Showing results for
Did you mean:
New member
2 1 0 0
Message 1 of 7
645
Flag Post

# HP49G+

HP Recommended

LOST CONDITIONAL CAPABILITY ie: IF THEN ELSE END NO LONGER WORKS

6 REPLIES 6
Level 9
971 954 119 186
Message 2 of 7
Flag Post
HP Recommended

Hi,

What is the firmware version of the calculator?

Press twice ALPHA key, type VERSION and then press ENTER key.

If it's not ROM version 2.15, you can update it:

HP49g+/50G ROM 2.15

With 2.15 on a 50g the IF-THEN-ELSE works for me.

Regards.

-Bart
_________________________________________________________
calculator enthusiast
Level 6
140 139 29 60
Message 3 of 7
Flag Post
HP Recommended

What is it you're trying to do?  It would be easier to understand your question if you provide an example.  Something like: "I did the following: <insert what you did>.  I expected <this> to happen, but instead I got <this>."  Otherwise, it's difficult to know how to help.

Level 9
3,551 3,490 180 541
Message 4 of 7
Flag Post
HP Recommended

Hi!, @BRUTUS51 :

You can see these examples, from Eddie Shore ... http://edspi31415.blogspot.com/2011/10/rpl-programming-tutorial-part-3-hp.html

Kind Regards !.
Have a nice day !.
Provost in HP Spanish Public Forum ... https://h30467.www3.hp.com/
New member
2 1 0 0
Message 5 of 7
Flag Post
HP Recommended

Was working fine when suddenly it stopped, I use it in numerous programs. I'm thinking it's a flag problem.

Wrote a simple test program.

< ͢    a

< IF a == 1

THEN 99

ELSE 66

END

This program needs a number in the stack twice and it always returns 99 no mater what the input.

Level 9
971 954 119 186
Message 6 of 7
Flag Post
HP Recommended

Hi,

If you are in RPN mode the structure would be:

```<< → a
<< IF a 1 ==
THEN 66
ELSE 99
END
>>>>```

You can use the algebraic syntax by putting a single quote mark before and after the test clause equation:

```<< → a
<< IF 'a==1'
THEN 66
ELSE 99
END
>>>>```

Also see the Advanced User's Reference manual:

https://www.hpcalc.org/details/7141

Regards.

-Bart
_________________________________________________________
calculator enthusiast
Level 9
3,551 3,490 180 541
Message 7 of 7
Flag Post
HP Recommended

Hi!, @BRUTUS51 :

You needed create for this conditional's, one local variable, not global variable.

You can see, from ... http://h10032.www1.hp.com/ctg/Manual/c02836298.pdf (RPL Programming 1-7 to RPL Programming 1-26).

Kind Regards !.
Have a nice day !.