Post Reply 
Error in CASE doc in manual
06-06-2017, 07:40 PM
Post: #1
Error in CASE doc in manual
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".
Find all posts by this user
Quote this message in a reply
06-06-2017, 11:07 PM (This post was last modified: 06-06-2017 11:08 PM by Joe Horn.)
Post: #2
RE: Error in CASE doc in manual
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;

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
06-07-2017, 03:34 AM
Post: #3
RE: Error in CASE doc in manual
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;

Sorry for my english
Find all posts by this user
Quote this message in a reply
06-07-2017, 03:03 PM (This post was last modified: 06-07-2017 03:03 PM by KeithB.)
Post: #4
RE: Error in CASE doc in manual
HPPrime-5-user_guide_en_2015_06_17_1

So I guess I need a new one!
Find all posts by this user
Quote this message in a reply
06-07-2017, 04:40 PM
Post: #5
RE: Error in CASE doc in manual
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

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
06-07-2017, 08:09 PM
Post: #6
RE: Error in CASE doc in manual
I know what is required, I was just pointing out an error in the manual, which appears to have been corrected.
Find all posts by this user
Quote this message in a reply
06-09-2017, 10:39 AM (This post was last modified: 06-09-2017 11:08 AM by Marcel.)
Post: #7
RE: Error in CASE doc in manual
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...
Find all posts by this user
Quote this message in a reply
Post Reply 




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