If you're using a recent nightly build the following will do what you are after:
<if test="${abc='123'}" > </if>
or
<echo message="abc=123" if="${abc='123'}"/>
note that the braces go around the whole expression not just the property part.
if you really want to compare your property as a number rather than a string then the following may be more appropriate:
<if test="${convert::to-int(abc)=123}" >
Ian
Jonni Faiga wrote:
Hi,
How do you check if a property is a certain value? The if... propertytrue & propertyexists doesnt seem to cater for this.
I would like something like: if (${abc}=123)... eg <if propertyname="${abc}" equalsvalue="123"> or <echo message="abc=123" if="${abc}=123"/>
Jonni
--
Ian MacLean, Developer, ActiveState, a division of Sophos
http://www.ActiveState.com
------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users