Conditional

The <Conditional> component provides a powerful alternative to the regular C# if statement. The main benefit is that VS doesn't make a pig's breakfast of your code if you try and type HTML or plain text inside a Razor if block!

Simple example

Try checking or clearing the checkbox to say whether or not

It's not raining today - hurray!

An error has occurred. This application may no longer respond until reloaded. Reload 🗙