ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Murdoch" <adammurdoch...@yahoo.com>
Subject RE: suggestion for if/unless syntax change
Date Thu, 21 Mar 2002 12:04:57 GMT


> -----Original Message-----
> From: Diane Holt [mailto:holtdl@yahoo.com]
> 
> 
> --- Adam Murdoch <adammurdoch_ml@yahoo.com> wrote:
> > You're not the only one.  In myrmidon, we changed if and unless to test
> > the property value against true/false/yes/no (with unset still
> > evaluating to false).
> 
> And I assume set (to anything) will evaluate to true?
> 

Here's how the test gets evaluated:

property not set => false
property set to 'false' => false
property set to anything other than 'false' => true


Adam


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message