Mark,
Maybe what is expected is an exlusive or as in procedural languages,
so if I write Exp1 || Exp2 it means:
if Exp1 is true => true
else if Exp2 is true => true
else => false.
Maybe you guys could implement this kind of or ( as a single pipe
'|' or something like that) in the future so people dont have
unexpected results. I know is declarative programingbut even in
prolog this kind of 'or' is possible insserted as part of the
language with diferent predicates with the same name as:
myrule(p,q):- do this.
myrule(p2,q2):- do that.
myrule(p3,q3):- do something else.
Thanks.!
Pd: great job on JBossRules/Drools3 btw!!!
Tuesday, April 18, 2006, 1:28:04 PM, you wrote:
> Cell( row == 1) || Cell( col == 2 )
> || inside an eval is very different to the above. Inside eval its just a
> standard java expression. Above is the 'or' Conditional Element it
> actually results in the creation of two rules, one for each possible
> outcome.
> Mark
> Steven Williams wrote:
>> I was wondering if there was a way to do ORs across columns without using
>> eval?
>>
>> For instance, instead of doing:
>>
>> Cell($r : row, $c : col)
>> eval($r == 1 || $c == 2)
>>
>> do:
>>
>> Cell(row == 1 || col == 2)
>>
>> I tried the above syntax but it seems to ignore the part after the or
>> completely (ie. it matches on all cells in row 1 only).
>>
>> thanks
>> Steve
>>
>> --
>> Steven Williams
>>
>> Supervising Consultant
>>
>> Object Consulting
>> Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501
>> [EMAIL PROTECTED]
>> www.objectconsulting.com.au
>>
>> consulting | development | training | support
>> our experience makes the difference
>>
>>
--------------------------
Felipe Piccolini
[EMAIL PROTECTED]