title: Groovy shorthand if else operator
body: <p>I'm trying to set a variable in a .gsp file with an object been passed to the view from the controller. 
  '<em>item</em>' is an object in this case with an attribute called '<em>sequence</em>'
  So what I'm trying to do is set the var '<em>action</em>' to the value of item.sequence and if item.sequence is null then set action value to the string "new". </p>
  
  <pre><code>&lt;g:set var="action" value= "${item.sequence?item.sequence:'new'}"/&gt;
  </code></pre>
  
  <p>Unfortunately, I'm getting the value of item.sequence and "new" together. 
  Does anyone know how I can do this shorthand?</p>