(Quick Reference)

1. while

1.1. Purpose

Executes a condition in a loop until the condition returns false

1.2. Examples

<g:while test="${i < 5}">
    <%i++%>
    <p>Current i = ${i}</p>
</g:while>

1.3. Description

Attributes

  • test - The conditional expression