mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 01:50:44 +01:00
62 lines
1.0 KiB
XML
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 & Application</usage>
|
|
|
|
<example>
|
|
<image>while_.gif</image>
|
|
<code>
|
|
int i=0;
|
|
while(i<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>
|