Sfairadora

  • Reference Guide

while Cycle

while(cond) template endwhile
while(cond) template endwhile-
The cond parameter is an Enki language expression returning Bool. The condition expression is repeatedly evaluated and, as long as it returns TRUE, the template is processed after every evaluation of the condition, and its result is appended to the output text.
If a minus sign is appended to the endwhile keyword, the attribute “keep with previous paragraph” is set to the last paragraph resulting from the last pass of the cycle. This can be used in a case when the while cycle generates a list in order to prevent placing the last list item at a separate page.

Remark

Instead of endwhile, it is also permitted to write end while.

See Also

for