<if>
<equals arg1="abc" arg2="abc"/>
<then>
<if>
<equals arg1="def" arg2="def"/>
<then>
<echo>success</echo>
<property name="letter" value="abcdef" />
<echo>${letter}</echo>
</then>
</if>
</then>
<else>
<echo>Not equal</echo>
</else>
</if>
Read full article from Ant - Users - How to use nested if in ant script?
No comments:
Post a Comment