title: Azure DevOps conditions in parameters
body: <p>Help me please with creating conditions in parameters in the step template.</p>
  <p>I want to change parameters in the template depending on variable.Mode value.
  For example, this code doesn't work:</p>
  <pre><code>  - template: ../templates/template1.yml
      parameters:
        ${{ if eq(variables.Mode, 'dev') }}:
          mode: dev
          namespace: dev-namespace
          fqdn: dev.mysite.com
        ${{ if eq(variables.Mode, 'staging') }}:
          mode: staging
          namespace: staging-namespace
          fqdn: staging.mysite.com
          anothervar: value
          yetanothervar: value2
  </code></pre>
  <p>The template executes with default values of parameters.
  What can I do to set vars depending on variable.Mode value.</p>