Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 519 Bytes

ant-if-else-conditionals.md

File metadata and controls

14 lines (11 loc) · 519 Bytes

Title: Ant: If-else conditionals Tags: ant|ant-condition Date: 2012-12-09 16:16:55 -0500 Author: Denevell

You can create normal conditionals via:

 <condition property="property_to_create" 
   value="value_to_set_as" 
   else="if_below_isnt_true">
  <isset property="another_property" />
 </condition>

The above sets a new property 'property_to_create' with the value 'value_to_set_as' if the property 'another_property' exists, else 'property_to_create' will have the value 'if_below_isnt_true'