elseif
目的 Purpose
The logical elseif tag使用例 Examples
<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
属性 Attributes
test
- The expression to testenv
- An environment name