[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LOGO-L> P's?



At 12:29 AM +0300 3/29/98, deer@y.net.ye wrote:
>Hi,
>
>In MEMBERP, EQUALP, EMPTYP, NUMBERP etc., what does the "P" stand for?
>

Predicate.

These procedures report TRUE or FALSE

?SHOW MEMBERP "A [A B C]
TRUE
?SHOW MEMBERP "A [C D E]
FALSE

They are ususally used as inputs to IF

IF EQUALP POS [0 0] [SHOW [WE'RE HOME!]]


In many versions of Logo ? is used instead of P so we have MEMBER?, EQUAL?,
EMPTY?, NUMBER? etc.

-Michael


--------------------------------------------------------
Michael Tempel                    tel: 212 579 8028
Logo Foundation                   fax: 212 579 8013
250 West 85th Street              michaelt@media.mit.edu
New York  NY 10024
http://el.www.media.mit.edu/logo-foundation/


---------------------------------------------------------------
Please post messages to the Logo forum to logo-l@gsn.org.  Mail
questions about the list administration to logofdn@gsn.org.  To
unsubscribe send    unsubscribe logo-l    to majordomo@gsn.org.



Global SchoolNet Foundation - Linking Kids Around the World!
Copyright GSN - All Rights Reserved - Comments & Questions
Visit GSN's Global Schoolhouse for more exciting learning resources!
Search our Site - Home