title: Azure DevOps YAML run step if variable not equal null - how to reference yaml variable in condition
body: <p>I want to run this step in a template if the number variable has a value.  Issue seems to be that even when set, like below, variables.number still seems to be empty.  I think I need another way to reference this variable?  I think this would work if I set the variable via the GUI but doesn't seem to pick it up from the YAML.  Does anybody know?</p>
  <p><strong>YAML</strong></p>
  <pre><code>stages:
  - stage: Run
    variables:
      - name: number
        value: '123'
    jobs:
    - job:
      steps:
      - template: .\run.yml
  </code></pre>
  <p><strong>TEMPLATE</strong></p>
  <pre><code>- ${{if ne(variables.number, '')}}:
      - powershell: Write-Host &quot;Its working!&quot;
  </code></pre>