but, in the example, u r using simple field, and not an array, rt?
would u plz give an example using array?

thanx



Mark Proctor-2 wrote:
> 
> You can only access an array from a ReturnValue or Predicate.
> 
> rule
>     no-loop == true
>     when
>         $p:Person(dob==today)
>     then
>         $p.setAge( $p.getAge() + 1 )
> end
> Joj wrote:
>> hi,
>>
>> how can we check the elements in a String array for some value, say
>> "ADMIN",
>> by assigning no-loop = false ?
>> plz show me a sample rule.
>>
>> OR
>>
>> can't we use arrays in the LHS?
>>
>> OR
>>
>>
>> plz write a business rule using no-loop = true.
>>
>>
>> thanx in advance
>> jojan
>>
>>
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Using-Arrays-tf2471369.html#a6893031
Sent from the drools - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to