title: How to use reactive argument as a value for an argument in code chunk in shiny
body: <p>I am wondering how can I use a reactive logical expression as a value for an argument in code chunk.</p>
  <p>for example in the following chunk</p>
  <pre><code>```{r,eval=&quot;input$task == 'Bond Analysis'&quot;,results='asis'}
  asis_output(&quot;Row \n&quot;)
  asis_output(&quot;-------------------------------------\n&quot;)
  asis_output(&quot;### Price&quot;) 
  ```
  </code></pre>
  <p>task is a selectInput with multiple choices. No matter what, this chunk is evaluated. I even used</p>
  <pre><code> ```{r} 
    renderText({&quot;input$task == 'Bond Analysis'&quot;}) 
    ```
  </code></pre>
  <p>to check if the value is TRUE or FALSE. when I choose anything besides 'Bond Analysis' the above value shows FALSE but the first code chunk is evaluated anyways</p>