HP Forums

Full Version: Error in CASE doc in manual
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
From the pdf manual:

CASE
IF THEN RETURN "negative"; END;
IF THEN RETURN "small"; END;
DEFAULT RETURN "large";END;

I think you need some tests between the "IF" and the "THEN".
Which version of the document do you have? My copy (Second Edition, September 2016) has this on page 584:

CASE
IF A<0 THEN RETURN "negative"; END;
IF 0≤A≤1 THEN RETURN "small"; END;
DEFAULT RETURN "large";
END;
Bonjour

Je me suis rendu compte que DEFAULT n'est pas obligatoire
( par accident, je l'ai oublié).
Ceci fonctionne.

Hello

I realized that DEFAULT is not mandatory
(By accident, I forgot it).
This works.

Code:
CASE
IF A<0 THEN RETURN "negative"; END;
IF 0≤A≤1 THEN RETURN "small"; END;
RETURN "large";
END;
HPPrime-5-user_guide_en_2015_06_17_1

So I guess I need a new one!
This code works, too:

Code:
CASE
IF A<0 THEN RETURN "negative"; END;
IF 0≤A≤1 THEN RETURN "small"; END;
DEFAULT "large";
END;


Tom L
I know what is required, I was just pointing out an error in the manual, which appears to have been corrected.
Hi Joe,
I only find July 2015 for the book where do you find the "Second edition September 2016" book?
Thank you.
Marcel

OK... I find it!
Sorry...
Reference URL's