HTCondor Project List Archives



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Condor-devel] [Fwd: Re: New Classad difference -- do bools promote to integers?]



--- Begin Message ---
On Tue, 2011-05-17 at 10:54 -0500, Greg Thain wrote:

> RANK = stringListMember(Owner, "user1 user2", " ")
> 
> This RANK has been there the earth cooled.  Obviously, stringListMember 
> returns a boolean type.  I guess in old classads, there was no boolean 
> type, and this was effectively promoted to an int.  Is this expected?  
> Should bools get numeric promotion?


It's definitely expected by the documentation, for example:

RANK = (Owner == "coltrane") + (Owner == "tyner") \
               + ((Owner == "garrison") * 10) + (Owner == "jones")

http://www.cs.wisc.edu/condor/manual/v7.6/3_5Policy_Configuration.html#26839



--- End Message ---