@if (hasItems) { @for (item of items; track item) { {{ item }} } } @if (!hasItems) { }