Grails Cookbook - A collection of tutorials and examples

Grails unless Tag Example

The Grails unless tag (<g:unless>) renders it's body when the condition given is false. It is the opposite of the if tag that renders a body when the condition is true. This will show a simple example on how to use this tag.