title: How to combine complex boolean expression by using MyBatis?
body: <p>I have the following MyBatis code snippet, but the SQL code won´t be executed in my complete SQL statement (the boolean variable has the right values):</p>
  
  <pre><code>&lt;when test="deletedParticipation == true and canceledParticipation == true and openedParticipation == false"&gt;
       AND     ( myTable.myColumn1 IS NOT NULL OR myTable.myColumn2 = 1 )                     
  &lt;/when&gt;
  </code></pre>
  
  <p>I think it is more clearly, if I doesn´t show you the complete SQL statement. Is that the right way to combine more than two boolean variables to an complex boolean expression? Working with parenthesis doesn´t working too.</p>