<g:if test="${name == 'fred'}"> Hello ${name}! </g:if> <g:if env="development"> Dev mode - debug: $someDebug </g:if> <g:if env="production" test="${cacheEnabled}"> $cache.getContent('1234') </g:if>
test
- The expression to testenv
- An environment name