[rules-users] comparing strings using ignore case

Wolfgang Laun wolfgang.laun at gmail.com
Mon Jul 9 01:56:05 EDT 2012


On 09/07/2012, Wolfgang Laun <wolfgang.laun at gmail.com> wrote:
> $h : HashMap()
> eval( $h.get( "Account_Ownership_Type" ).equals("Single") )

Here you cannot use a custom operator, but you can write a function

function testmap( Map m, String key, String value ){
    return m.get( key ).equalsIgnoreCase( value );
}

-W


>
> On 09/07/2012, abhinay_agarwal <abhinay_agarwal at infosys.com> wrote:
>> $h : HashMap(this["Account_Ownership_Type"]=="Single")
>>
>> m using this for comparision right now...
>>
>> --
>> View this message in context:
>> http://drools.46999.n3.nabble.com/comparing-strings-using-ignore-case-tp4018504p4018530.html
>> Sent from the Drools: User forum mailing list archive at Nabble.com.
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>


More information about the rules-users mailing list