A few ways...
You can use the condition task:
<condition
property="war.dir"
value="a"
else="b">
<istrue arg1="${global}"/>
</condition>
You might be able to use the new if and unless in a <property/>
task. I've had problems with these.