Hi,
It works if everything is nested in the classic LISP manner:
(if (= (+ 1 1) 3) then
(printout t "Universe is just plain crazy today" crlf)
else (if (= (+ 1 1) 1) then
(printout t "Universe is monotonic today" crlf)
else (if (= (+ 1 1) 2) then
(printout t "Universe is normal today" crlf))))
I think Eamon Gaffney wrote:
>
>
> ------ =_NextPart_000_01BE449E.B29DA530
> Content-Type: text/plain; charset="us-ascii"
> Content-Transfer-Encoding: 7bit
>
> I am developing some test rules and was wondering if there was any functionality
> for else-if statements in jess. I tried grouping an if inside an else but just got
>an error. It
> is possible could you forward me some sampe code on how this may be got around
>without
> having to write everything in If statements only.
>
> Much apreciated.
> E
>
>
> -----------------------------------------------------------------
> Eamon Gaffney [EMAIL PROTECTED]
> Prompter project
> Computer Applications Telephone - 087 2203130
> Dublin City University Work - 01 7048003
> Dublin 9, Ireland. -01 7045618
>
> Surfers Against Sewage.
>
>
>
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9214 [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. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------