title: Inline if statement in grails
body: <p>Is there a way in Grails to do conditionals inline on an HTML attribute, for example:</p>
  
  <pre><code>&lt;div class="${if(sec.isLoggedIn()) loggedInClass}"&gt;
  </code></pre>
  
  <p>I'm trying to add a class to certain elements if the user is logged in.</p>