while Command
while Basic Command
while exp ... end
As a basic command, the while command provides repeated execution
of embedded Jive commands (looping). while is followed by an
expression that is converted to bool. While the result is true, the
Jive commands that follow are executed up to an end. When the
expression result is false, execution skips to the terminating end.
For example,
while count '*' set count = count - 1 end
which outputs count asterisks.
while External Command
{while exp} ... {end}
As an external command, the while command provides repeated inclusion
of HTML text (looping). The while is preceded by a left brace
({). It is followed by an expression that is converted to bool. The expression
must be followed by a right brace (}) to identify this as an external
command. While the result of the expression is true, the HTML text (and
embedded Jive code) that follows is included up to a {end}.
When the expression result is false, execution skips to the terminating
{end}. For example,
{while count}*{set count = count - 1}{end}
which outputs count asterisks.
[Return to Previous Page]
[Return to Main Page]
Jive(tm) 2, Copyright © 1997 FFE Software All Rights Reserved WorldWide