HTCondor Project List Archives



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

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




More the the point, EvalFloat() doesn't like it if the result is a boolean.

--Dan

Dan Bradley wrote:

Coercion of bools to integers within expressions is supported in new classads. What I believe is different is that EvalInteger() doesn't like it if the result of the whole expression is a boolean.

--Dan

Erik Erlandson wrote:
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