<if test="${property::exists('test') and test}">
     .....
</if>

if you are certain that property 'test' exists, you can just use :

<if test="${test}">
     .....
</if>

Hope this helps,

Gert

----- Original Message ----- 
From: "Vincent Erickson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 23, 2004 5:07 PM
Subject: [Nant-users] Using the <if> task with propertytrue


I just added some code to my nant script using the if property true
construct to conditionally execute some child tasks. I'm being told by nant
that propertytrue is deprecated, and I should be using "test" instead. This
is fine with me, except that I can find no examples of how that syntax would
look. Could someone send me an example of using test instead of propertytrue
within the if task?

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.659 / Virus Database: 423 - Release Date: 4/15/2004




-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to