Hello, I would like to know if is possible to make queries with conditions, like:
(deftemplate (person (slot name) (slot age)) ;(intended query) (defquery person-by-age (declare (variables ?age)) (person (name ?name) (age (>?age))) Now, I have some persons inside the working memory and i would like to make something like this, (person-by-age 10) and it gives me the people which is older than 10 years. This is possible in some way? Moreover, how can i know who is the older in the database, only using a query? This is possible at all, or i need to do intermediate functions? Regards, Joao Mourao -------------------------------- unclassified email ------------------------------------------------------------------------------------------------------------ Disclaimer: If you are not the intended recipient of this email, please notify the sender and delete it. Any unauthorized copying, disclosure or distribution of this email or its attachment(s) is forbidden. Thales Nederland BV will not accept liability for any damage caused by this email or its attachment(s). Thales Nederland BV is seated in Hengelo and is registered at the Chamber of Commerce under number 06061578. ------------------------------------------------------------------------------------------------------------
begin:vcard fn;quoted-printable:Jo=C3=A3o Mour=C3=A3o n;quoted-printable;quoted-printable:Mour=C3=A3o;Jo=C3=A3o org:Thales;Above Water Systems adr:;;;Hengelo;;;Netherlands email;internet:[EMAIL PROTECTED] title:THALES NETHERLANDS B.V. tel;work:2640 note:-unclassified mail- version:2.1 end:vcard
