I think  you want this?

( + ?slide 1) 




----- Original Message ----
From: John Chrysakis <[email protected]>
To: [email protected]
Sent: Tuesday, August 18, 2009 3:24:25 PM
Subject: JESS: JESS Simple Variable Question


Hello to all community,

I am trying to bind an int variable e.g slide
and then to use it's value plus a different number,

e.g slide + 2, slide +3.

How I Can Do that, the following doesn't work.


(defrule Rule1
      ...
    =>
     (bind ?slide 4)
     (calling goToSlide "p1" ?slide)
     (calling goToSlide "p2" ((?slide)+1))
     (calling goToSlide "p3" ((?slide)+6))
    ...
    )


thank you in advance!


--------------------------------------------------------------------
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].
--------------------------------------------------------------------


      


--------------------------------------------------------------------
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