If you're really writing the contraint as (age ?age&>16), then that's
actually the problem right there; that's not the right syntax. You're
asking if ?age is the atom ">16", which it's not, of course. To call a
function in a constraint, you have to write (age ?age&:(> ?age 16)),
using the LISP prefix syntax for function calls.

Given that you've written the constraint properly, the < function will
automatically interpret the String "11" as the number 11.



I think Andrew Reischer wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> hi..
> 
> I am having difficulty with a left hand side constraint. I assert a fact,
> but as you can see I asserted the age as a string.
> 
>  f-23 (child (age "11"))
> 
> on the left side the constraint  (child (age ?age&>16)) fails  but the (>
> ?age 16) test is fine on the right side.
> 
> My real question is how do I convert the siring "11" to the symbol 11. I
> cant seem to find it in the manual.
> 
> Andy Reischer
> 




---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to