--- Begin Message ---
- Date: Tue, 17 May 2011 09:32:52 -0700
- From: Erik Erlandson <eerlands@xxxxxxxxxx>
- Subject: Re: [Condor-devel] New Classad difference -- do bools promote to integers?
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 ---