razor add class if condition is false
<p>Hey i need to add class to div only if count is higher than 6  but i dont know where is the problem. Thanks for any advice </p>

<pre><code>                @{
                    int count = 0;
                 }
                @foreach (var item in Model.Models)
                {
                    &lt;div class="col-xxs-12 col-xs-6 col-sm-4 @(count &lt; 6 ? "" : "dismiss")"&gt;
                        &lt;a href="@Url.Action("Detail", "Product", new { productID = item.ProductID, parentCategoryID = item.CategoryID, isProductModel = true })" class="model-wrap"&gt;
                            &lt;div class="box"&gt;
                                &lt;div class="img-wrap" style="background-image: url( @Url.Content(Utils.ProductImagePath(item.ImageID)) )"&gt;&lt;/div&gt;
                                &lt;div class="arrow f16"&gt;@item.Name &lt;i class="fa fa-angle-right theme-color" aria-hidden="true"&gt;&lt;/i&gt;&lt;/div&gt;
                            &lt;/div&gt;
                        &lt;/a&gt;
                    &lt;/div&gt;
                } count++;
            &lt;/div&gt; 
</code></pre>