I want to do something like the following
<target name="complex-conditional">
<if>
<exec command= "python some-python-script-that-returns-true-or-false-strings-to-stout.py/>
<then>
<echo message="I did sometheing" />
</then>
<else>
<echo message="I did something else" />
</else>
</if>
</target>
How do I evaluate the result of executing some script inside of an ant conditional?