Re: JESS: compare slots but only with the last two instances

2011-10-27 Thread nikos erinis
hey...thx a lot for your help, but i dont know how to make the loop stop in the next two instances. i use the jesstab on protege so i have jess-facts after mapping. i want to delete the instance which is in the middle of other instances (+ / - 2 instances) and has a different slot-value from the

RE: JESS: compare slots but only with the last two instances

2011-10-19 Thread Friedman-Hill, Ernest
Assuming that there's some definite ordering among your instances, you just need to make those explicit somehow -- give each instance a slot holding a serial number -- and then you can identify the next two and the last two by comparing those numbers. Otherwise it's the same as comparing any