title: If-else statement in XML
body: <p>I have such a personal id number: 53012393715. The 10th number means gender. I want to use if-else statement to do such an operation. At first I should get the 10th number from id, in my case it's 1 (one). If the number is even (0,2,4,6,8) it means woman, otherwise (1,3,5,7,9) it means man. I need to get the gender in my output XML file.</p>
  
  <p>I tried to get the 10th number using concat function, but it doesn't work, also I don't know how to use if-else statement correctly.</p>
  
  <p>My input XML file:</p>
  
  <pre><code>&lt;ClientList&gt;
    &lt;Client&gt;
      &lt;IdNumber&gt;53012393715&lt;/IdNumber&gt;
    &lt;/Client&gt;
  &lt;/ClientList&gt;
  </code></pre>
  
  <p>This one output XML file I want to get:</p>
  
  <pre><code>&lt;ClientList&gt;
    &lt;Client&gt;
      &lt;Gender&gt;man&lt;/Gender&gt;
    &lt;/Client&gt;
  &lt;/ClientList&gt;
  </code></pre>