My last 'if' statement is rendering as text. How can i fix that?
See how the grey highlighting for the 2nd 'if' statement completes on the end of the last 'if' statement?

thanks
Razor thinks that the previous if hasn't ended yet, since you're still inside the <div>s.
You need to prefix the <div>s with @: to prevent Razor from matching the tags.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With