title: Umbraco or MVC Razor Element with possible different CSS styles in beginning of tag
body: <p>So I have seen this done before and I completely forgot where or what the syntax is.
  Help is greatly appreciated.</p>
  
  <p>So I have an element I want to add an CSS style to depending on what property is filled out or not in the Umbraco CMS.  I thought it involved colons (:) or something like that after the element's tag.  But not entirely sure. </p>
  
  <p>I want to do something like this</p>
  
  <pre><code> foreach(var item in @Model.myNodeList)
        if(@item.myProperty != String.Empty){
        &lt;div class="myStyleOne"&gt;
        }
        else if(@item.myProperty == String.Empty){
        &lt;div class="myStyleTwo"&gt;
        }
        else{
       &lt;div class="myDefaultStyle"&gt;
        }
          &lt;p&gt;My content that will be inside of this div with different starting tags&lt;/p&gt;
        &lt;/div&gt;
   }
  </code></pre>
  
  <p>I know this code is not entirely correct and I am missing something. Can anyone point me in the right direction? Thanks.</p>