JESS: [EXTERNAL] nested foreach to return from the inner loop

2013-05-23 Thread Przemyslaw Woznowski
Hi Jess users, I have the following function: (deffunction similarity-score (?base ?other) (bind ?score 0) (bind ?totalDistance 0) (bind ?counter 0) (foreach ?x ?base (bind ?counter (+ ?counter 1)) (printout t "counter is:" ?counter) (bind ?partialDistance

Re: JESS: [EXTERNAL] nested foreach to return from the inner loop

2013-05-23 Thread Jason Morris
Did you try the (break)function? Arguments:NoneReturns:N/ADescription: Immediately exit any enclosing loop or control scope. Can be used inside of for, while