title: Are IF..ELSE statements in a View frowned upon in ASP.NET MVC?
body: <p>I know that you want to keep logic out of your views. I can elimate most loops by using DisplayFor/EditorFor and passing IEnumerables to the view. </p>
  
  <p>What about IF statements? should they be avoided completely in views? used sparingly? as a last resort? </p>
  
  <p>Say you wanted to show hide an element based on a User role...How would u go about doing this without an IF statement...a completely seperate view perhaps?</p>
  
  <p>Just trying to get an idea of best practices.</p>
  
  <p>Thanks!</p>