title: Extra characters after close quote in conditional operator
body: <p>I am using a conditional operator but getting the error "extra characters after close-quote". fdx is a parameter I am trying to pass through the function argument and I am checking if the passed argument is "fdx" or not and based on that the value to be written will be decided. </p>
  
  <pre><code>    proc set_ifg_seville2 {port sgmii speed fdx} {
     case $speed {
      10 {
          erf_wr -s dev_$port mac_ifg_cfg tx_ifg [expr ($fdx == "fdx") ? 5:4]
  
        }
  
      } #Closing procedure
  </code></pre>