Discussions

Ask a Question
Back to All

Showing content only if not restricted

I'd like to do something in my template like:

@if (isRestricted) {
  contentA
} else {
  contentB
}

How can I accomplish this?