Umbraco - if else statement inline with razor

Razor will add the quotes automatic (class = "active")
<div @( Model.Content.Id == Model.HomeId ? "class=active" : "class=not-active") ">
    <a href="@Model.HomeUrl" title="@Model.HomeTitle" >@Model.HomeTitle</a>
</div>