title: How do i do an inline if statement in haml
body: <p>I have this haml</p>
  
  <pre><code>  %table.form_upper{:style =&gt; "display:none;", :id =&gt; 'profile-info'}
      %tr{:id =&gt; 'some-row'}
  </code></pre>
  
  <p>How do i do display none on this table if a condition is met like for example i know i can do this but i feel there has got to be an inline way of doing this </p>
  
  <pre><code>-if condtion
    %table.form_upper{:id =&gt; 'profile-info'}
  -else
    %table.form_upper{:style =&gt; "display:none;", :id =&gt; 'profile-info'}
      %tr{:id =&gt; 'some-row'}
  </code></pre>