Looking at all of your questions, I think what you're trying to ask is
if you can use the LHS of a rule like a procedural nested if
statement. You probably want to call a function in one pattern and
then use the return value of that call in another pattern. The short
answer is that no, you can't do that, it just doesn't work that
way. The slightly longer answer is that if it worked that way, much of
the advantage offered by the high-performance Rete algorithm would be
sacrificed.
In any case, if you find yourself needing to do this, then what it
means is that you should be writing deffunctions instead of defrules
-- i.e., if you need to write procedural code, go ahead, write a
procedure!
I think Adarsh Jain wrote:
> Hi,
> Can I invoke functions in Jess that return anything other than a boolean..
>
> Thanks,
>
> --
> Adarsh Jain
> Longitude Systems, Inc
> Ph: 703-818-5436
>
>
---------------------------------------------------------
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]
---------------------------------------------------------------------