title: TeamCity conditional parameter values
body: <p>How can I assign a runtime value to a build parameter? I set a build parameter, let's say %config.buildMode%, to a dropdown and I need to have something like an IF condition so that I can assign a different value to another parameter based on the buildmode selection.</p>
  
  <p>e.g.</p>
  
  <pre><code>if %config.buildMode% == 'Debug'
     %config.hostName% = 'localhost'
  else if %config.buildMode% == 'Release'
     %config.hostName% = 'http://servername'
  else
     %config.hostName% = 'http://stackoverflow.com'
  </code></pre>