I have a foo object and I want to output:
Name, Location
So I'm trying ...:
@if (sometruestuff){ @foo.Title, @foo.Location } @if (sometruestuff){ @foo.Title , @foo.Location }
Both will not compile.
But...
@if (sometruestuff){ @foo.Title<span>,</span> @foo.Location }
... works.
Is there any trick I'm missing?
Edit: this happens inside a code block updated to reflect this.
source share