I have the following code in my partial view of a ASP.NET MVC project : \[code\]@if (Model.Url != null && Model.Url.Length > 0){ <a href="http://stackoverflow.com/questions/15484064/@Model.Url" target="_blank" title="Bes?k extern sida"><img src="http://stackoverflow.com/questions/15484064/~/Content/Theme/images/icons/link_13x13.jpg" alt="Extern l?nk" /></a> }else{<img src="http://stackoverflow.com/questions/15484064/~/Content/Theme/images/icons/link_13x13_inactive.jpg" alt="Extern l?nk saknas" />}\[/code\]This works great!But then I got this : \[code\]@if(!Model.PersoanlTagStatus.HasValue){ <div class="postContainer"> }else if(Model.PersoanlTagStatus == ProjectX.Models.TagTypeKey.Ignore){ <div class="postContainer postConIgnore"> }else if(Model.PersoanlTagStatus == ProjectX.Models.TagTypeKey.Favorite){ <div class="postContainer postConFav"> }\[/code\]And this is not working at all? It complains at the if that it is missing its \[code\]}\[/code\]?Why?