title: access a variable from azure pipeline's library variable group in side the built in function 'eq' in a template
body: <p>I want to access the variable (defined in pipeline's library variable group) in side an 'if' expression using built in function 'eq' in my template yml file.</p>
  <p>MY_VARIABLE_GRP has
  <strong>key</strong>: SONARQUBE_OR_SONARCLOUD
  <strong>Value</strong>: 'sonarqube'</p>
  <p><strong>main.yml</strong></p>
  <pre><code>    resources:
        repositories:
          - repository: templates
            type: git
            name: MY_PROJECT/MY_TEMPLATE_REPO
  stages:
    - stage: &quot;Build&quot;
      displayName: Build
      variables:
        - group: MY_VARIABLE_GRP
      jobs:
      - template: MODULE1/include-my-template.yml@templates
      
  </code></pre>
  <p><strong>include-my-template.yml</strong></p>
  <pre><code>jobs:
    - job: Build
      steps:
      - task: CmdLine@2
        inputs:
          script: |
            echo val: $(SONARQUBE_OR_SONARCLOUD) ##IT PRINTS 'sonarqube'
            echo SC: ${{eq(variables['SONARQUBE_OR_SONARCLOUD'], 'sonarqube')}} ### Always returns fails  
  
      - ${{ if eq(variables['SONARQUBE_OR_SONARCLOUD'], 'sonarqube') }}:
         - DO THIS..
  </code></pre>
  <p>As per ADO docs the 'eq' Converts right parameter to match type of left parameter. Returns False if conversion fails.</p>
  <p>Tried all the below options and all prints False:</p>
  <pre><code># - task: CmdLine@2
  #   inputs:
  #     script: |
  #       echo val: $(SONARQUBE_OR_SONARCLOUD) ## PRINTS 'sonarqube'
  #       echo SC: ${{eq(variables['SONARQUBE_OR_SONARCLOUD'], 'sonarqube')}}  
  #       echo SC: ${{contains(variables['SONARQUBE_OR_SONARCLOUD'], 'sonarqube')}} 
  #       echo SC: ${{eq('$SONARQUBE_OR_SONARCLOUD', 'sonarqube')}}  
  #       echo SC: ${{eq('&quot;$SONARQUBE_OR_SONARCLOUD&quot;', 'sonarqube')}}
  </code></pre>