HP Forums
IFERR function on HP Prime - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: IFERR function on HP Prime (/thread-257409.html)



IFERR function on HP Prime - Mic - 12-01-2013

Hi,

How to use IFERR function ? What are the different error codes ?

Thank you


Re: IFERR function on HP Prime - Terje Vallestad - 12-01-2013

Mic,

From the manual, don't know if this helps

IFERR

IFERR commands1 THEN commands2 END; Executes sequence of commands1 . If an error occurs during execution of commands1, executes sequence of commands2.

IFERR ELSE

IFERR commands1 THEN commands2 ELSE commands3 END; Executes sequence of commands1 . If an error occurs during execution of commands1, executes sequence of commands2. Otherwise, execute sequence of commands3

Seems only to check for an error condition, can't find anything about any specific codes

Cheers,

Terje

Edited: 1 Dec 2013, 4:12 a.m.


Re: IFERR function on HP Prime - cyrille de Brébisson - 12-02-2013

hello,

there is no way at this point to get the last error code... sorry...

note: in the currently shipping version, there is a bug in IFERR, you HAVE to have an ELSE clause (even one that does nothing) else it will crash.

cyrille