Hello,
 
I wish to add 2 variables using NAnt. any ideas?
 
Currently this is what i am doing:
 

<

property name="value1" value="1"/>

<property name="value2" value="2"/>

<property name="value3" value="${(value1)+(value2)}"/>

<echo message="${value3}"/>

 

This is returning 12. I knwo this is happening because the values value1 and value2 are being concatenated instead of added. Any ideas how to convert these strings into integers so that i could perform the + operation on them?


Thanks and Regards,

Niranjan

Reply via email to