[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] RANK certain attributes
- Date: Fri, 29 Jan 2010 08:24:18 -0600
- From: Daniel Forrest <dan.forrest@xxxxxxxxxxxxx>
- Subject: Re: [Condor-users] RANK certain attributes
> Basically, your rank statement is saying:
> If Department is undefined the rank will be 0. Meaning everyone has
> the same fair rank.
> Else If department is defined then chemistry has 1000 of a better
> chance than other departments
> Is there an easier way to rewrite this statement :-) It looks
> complicated for newbie condor admins.
RANK = ifThenElse(Target.Department =?= "Chemistry", 1000, 0)
Using the meta-equals ("=?=") operator removes the need for using the
"ifThenElse(isUndefined(Target.Department),0,...)". The meta-equals
operator will return FALSE if one argument is undefined.