title: Azure Data Factory - if with multiple conditions
body: <p>I want to create a pipeline in ADF checking if the data has the correct format. I want to check the number of columns, file size, etc. If any of these conditions are not met I want to send an email. It is my pipeline</p>
  <p><img src="https://i.stack.imgur.com/F1GkJ.png" alt="Pipeline layout" /></p>
  <p>I wrote the first condition in my pipeline and everything worked correctly.</p>
  <pre><code>@not(equals(activity('Get Metadata1').output.size,0)) 
  </code></pre>
  <p>However when I wanted to add the next condition. So my whole condition looks like this.</p>
  <pre><code>@not(equals(activity('Get Metadata1').output.size,0)) and equals(activity('Get Metadata1').output.columnCount,5)
  </code></pre>
  <p>I started getting this error message.</p>
  <blockquote>
  <p>'not' is a primitive and doesn't support nested properties</p>
  </blockquote>
  <p>Could you let me know how I can approach this?</p>