On Thursday 21 March 2002 13:04 pm, Adam Murdoch wrote:
> > -----Original Message-----
> > From: Diane Holt [mailto:[EMAIL PROTECTED]
> >
> > --- Adam Murdoch <[EMAIL PROTECTED]> 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

That's how it SHOULD get evaluated, IMO, but that's not how it actually works 
(at least, in Ant 1.4.1). It goes like this:

> property not set => false
> property set to anything => true

Then again, maybe it only responds to the word 'false', and not 'off' or 
'no', as most other flags do?

----- stephan
Generic Universal Computer Guy
[EMAIL PROTECTED] - http://www.einsurance.de
Office: +49 (89) �552 92 862 Handy: �+49 (179) 211 97 67
"I ain't gen'rally given to physicality of that nature but it saves
a lot of arguing." -- Nanny Ogg

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to