Files
processing4/web/reference/API/while.xml
2005-01-27 06:48:42 +00:00

62 lines
1.0 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>while()</name>
<category>Control</category>
<subcategory>Iteration</subcategory>
<usage>Web &amp; Application</usage>
<example>
<image>while_.gif</image>
<code>
int i=0;
while(i&lt;80) {
line(30, i, 80, i);
i = i + 5;
}
</code>
</example>
<description>
Controls a sequence of repetitions. The <b>while</b> structure executes a series of statements continuously while the <b>expression</b> is <b>true</b>. The expression must be updated during the repetitions or the program will never "break out" of <b>while()</b>.
</description>
<syntax>
while(<c>expression</c>) {
<c>statements</c>
}
</syntax>
<parameter>
<label>expression</label>
<description>a valid expression</description>
</parameter>
<parameter>
<label>statements</label>
<description>one or more statements</description>
</parameter>
<returns></returns>
<related>
for()
</related>
<availability>1.0</availability>
<type>Structure</type>
<partof>PDE</partof>
</root>