title: How to use If Condition in Data Factory? - Getting always false
body: <p>I have Lookup, which (Exec) query from database if tables are empty or not. It get result 1 if table are not empty.</p>
  <p>I have if condition where I check if value is true.</p>
  <pre><code>@equals(activity('Check_Tables_Empty').output.firstrow, '1')
  </code></pre>
  <p>However I get always pipeline directed to False even lookup returns 1.</p>
  <p><a href="https://i.stack.imgur.com/thNOx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/thNOx.png" alt="Check if tables are empty" /></a></p>
  <p>Lookup Result:
  &quot;firstRow&quot;: {
  &quot;&quot;: 1
  }</p>