title: Why is my azure devops variable not evaluated as bool?
body: <h1>Question</h1>
  <p>Can i cast my type to bool, so it works without <code>eq()</code> when declaring the variable or am i stuck with the version that works?</p>
  <h2>my variables</h2>
  <pre><code>variables:
    - name: BUILD_PUBLISH_ARTIFACTS
      value: ${{or(startsWith(variables['Build.SourceBranch'], 'refs/heads/releases/'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))}}
    - name: BUILD_IS_RELEASE
      value: ${{startsWith(variables['Build.SourceBranch'], 'refs/heads/releases/')}}
    - name: BUILD_IS_ALPHA
      value: ${{eq(variables['Build.SourceBranch'], 'refs/heads/master')}}
  </code></pre>
  <h2>this works</h2>
  <pre><code>  - task: PowerShell@2
      condition: and(succeeded(), eq(variables['BUILD_PUBLISH_ARTIFACTS'], 'True'))
  </code></pre>
  <h2>this does not work (but i want it to work like this)</h2>
  <pre><code>  - task: PowerShell@2
      condition: and(succeeded(), variables['BUILD_PUBLISH_ARTIFACTS'])
  </code></pre>
  <p><a href="https://i.stack.imgur.com/D9vEY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D9vEY.png" alt="screenshot of yaml build pipeline" /></a></p>