elseif
Purpose
The logical elseif tagExamples
<g:if test="${name == 'fred'}"> Hello Fred! </g:if> <g:elseif test="${name == 'bob'}"> Hello bob! </g:elseif> <g:elseif env="development"> Hello unknown developer! </g:elseif>
Description
Attributestest
- The expression to testenv
- An environment name