I am building a menu with Razor and having a problem with it displaying properly. Here is the line that is giving me problems:

```
<li @topNavCurrentCount == @topNavCount ? "class=last" : @string.Empty><a href="@node.Url.Replace("~/","/").Replace(".aspx","")">@node.Title</a>

```

It renders the HTML like this:

```
 <li {1 == 7 ? "class=last" : ;}><a href="/Home">Home</a>

```

I know im close to getting it but I can't see it.