[rules-dev] feature request: undo-then
Greg Barton
greg_barton at yahoo.com
Thu Feb 19 10:56:53 EST 2009
--- On Thu, 2/19/09, Geoffrey De Smet <ge0ffrey.spam at gmail.com> wrote:
> What would an "else clause" do?
The else clause(s) could be indexed by condition. This has been implemented by Dr Forgy's OPSJ. It looked something like this:
rule
when
1: Foo()
2: Bar()
3: Bas()
then
//Everything matches
else 3:
//Foo and Bar match, No Bas
else 2:
//Foo matches, No Bar, Bas unknown
else 1:
//No Foo, Bar and Bas unknown
end
More information about the rules-dev
mailing list