JESS: compare slots but only with the last two instances

2011-10-19 Thread nikos erinis
hi fellows, it's me again :) i wrote to you about a week ago. i wanted to compare slots but i didnt get any answers. i realised the question was very dumm. i foun the solution on my own. but now i have a bigger problem. i just want to compare the slot of an instance but only with the last two

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