forked from processing/processing-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelse.xml
More file actions
executable file
·88 lines (65 loc) · 1.46 KB
/
else.xml
File metadata and controls
executable file
·88 lines (65 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>else</name>
<category>Control</category>
<subcategory>Conditionals</subcategory>
<usage>Web & Application</usage>
<example>
<image>else0.png</image>
<code><![CDATA[
for (int i = 5; i < 95; i += 5) {
if (i < 35) {
line(30, i, 80, i);
} else {
line(20, i, 90, i);
}
}
]]></code>
</example>
<example>
<image>else1.png</image>
<code><![CDATA[
for (int i = 5; i < 95; i += 5) {
if (i < 35) {
line(30, i, 80, i);
} else if (i < 65) {
line(20, i, 90, i);
} else {
line(0, i, 100, i);
}
}
]]></code>
</example>
<description><![CDATA[
Extends the <b>if</b> structure allowing the program to choose between two or more blocks of code. It specifies a block of code to execute when the expression in <b>if</b> is <b>false</b>.
]]></description>
<syntax>
if (<c>expression</c>) {
<c>statements</c>
} else {
<c>statements</c>
}
if (<c>expression</c>) {
<c>statements</c>
} else if (<c>expression</c>) {
<c>statements</c>
} else {
<c>statements</c>
}
</syntax>
<parameter>
<label>expression</label>
<description><![CDATA[any valid expression that evaluates to true or false]]></description>
</parameter>
<parameter>
<label>statements</label>
<description><![CDATA[one or more statements to be executed]]></description>
</parameter>
<returns></returns>
<related>
if
</related>
<availability>1.0</availability>
<type>Keyword</type>
<partof>PDE</partof>
</root>