The samples can differ based on your Razor base class or if you're running an old version.
Switch to Strong-Typed (2sxc 17.06+) Switch to Typed (2sxc 16+) Selected: Dynamic (Razor14 or below)
Switch to Strong-Typed (2sxc 17.06+) Switch to Typed (2sxc 16+) Selected: Dynamic (Razor14 or below)
Resources
Razor Conditions such as if, if-else and ? :
⬇️ Result | Source ➡️
it's green
⬇️ Result | Source ➡️
it's blue
This is important, if you have an code block like an if, and you don't want a span-tag or similar in the output
⬇️ Result | Source ➡️
it's not pink
⬇️ Result | Source ➡️
it's not red
⬇️ Result | Source ➡️
Day of week: Thursday
It's a workday
It's a workday
It's a workday
⬇️ Result | Source ➡️
Title: Title not provided