title: if else for ant script
body: <p>hi current i have this ant script:</p>
  
  <pre><code>        &lt;target name="Cleanup Snapshots" description="Cleanup TrueCM snapshots"&gt;
          &lt;echo&gt;Executing: ${TrueCM_App}\ssremove.exe  -h${TrueCM_Host} "${TrueCM_New_SS}"&lt;/echo&gt;
          &lt;exec executable="${TrueCM_App}\ssremove.exe"   failonerror="${TrueCM_Failon_Exec}"&gt;
              &lt;arg line="-h ${TrueCM_Host}"/&gt;
              &lt;arg line='-f "${TrueSASE}/${Product_version}/${name}"'/&gt;
          &lt;/exec&gt;
  
  
      &lt;/target&gt;
  </code></pre>
  
  <p>what this script does is that it will execute ssremove.exe with some parameters as shown.</p>
  
  <p>however, this script above is only valid when the parameter ${Product_version} contains the word "Extensions" for example 6.00_Extensions</p>
  
  <p>Else if they dont contain "Extensions" the script should look like this:</p>
  
  <pre><code>    &lt;target name="Cleanup Snapshots" description="Cleanup TrueCM snapshots"&gt;
          &lt;echo&gt;Executing: ${TrueCM_App}\ssremove.exe  -h${TrueCM_Host} "${TrueCM_New_SS}"&lt;/echo&gt;
          &lt;exec executable="${TrueCM_App}\ssremove.exe"   failonerror="${TrueCM_Failon_Exec}"&gt;
              &lt;arg line="-h ${TrueCM_Host}"/&gt;
              &lt;arg line='-f "${TrueSASE}/${name}"'/&gt;
          &lt;/exec&gt;
  
  
      &lt;/target&gt;
  </code></pre>
  
  <p>so my question is how should i add the if else statements that contain exactly the line "Extensions"? or how do i check if "Extensions" word is present?</p>