You know, I tried the example below using the not and when I do I get: 

'not False ' is not a valid value for attribute 'test' of <if ... />.
    Cannot resolve 'not False ' to boolean value.
        String was not recognized as a valid Boolean.

Is there something I'm doing wrong?  I did notice the != expression so I'm 
using that where I'm doing the <ifnot test="${property=='value'}" />

So ... now when I try <if test="${not property::exists('junk')" /> I will get 
the message above.

Any ideas? 

Thanks,
Felice

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of John Hardin
Sent: Thursday, June 16, 2005 10:27 AM
To: Gert Driesen
Cc: Foster, Richard - PAL; Felice Vittoria;
nant-users@lists.sourceforge.net
Subject: Re: [Nant-users] if and ifnot tasks



Gert Driesen said:

>> <if test="${not today.month=='1'}">
>> whatever....
>> </if>
>>
>> Is that the intended replacement Gert?
>
> Yeps !

What about the <if> task supporting an ELSE clause? I've always been
somewhat offended by the inelegance of having to do:

    <if "test">
        blahblahblah
    </if>
    <if "not test">
        blahblahblah
    </if>

...to get an ELSE clause.


-- 
John Hardin
Development and Technology group (Seattle)
CRS Retail Systems, Inc.
3400 188th Street SW, Suite 185
Lynnwood, WA 98037
voice: (425) 672-1304
  fax: (425) 672-0192
email: [EMAIL PROTECTED]
  web: http://www.crsretail.com
-----------------------------------------------------------------------
  America is an amazing country. We spend billions of dollars sending
  troops halfway around the world to evict a sadistic dictator and
  bring freedom to the people of a foreign country, while at the same
  time working to build a police state at home.




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to