-
-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy pathlogicalAND.xml
More file actions
executable file
·64 lines (43 loc) · 1.46 KB
/
Copy pathlogicalAND.xml
File metadata and controls
executable file
·64 lines (43 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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>&& (logical AND)</name>
<category>Control</category>
<subcategory>Logical Operators</subcategory>
<usage>Web & Application</usage>
<example>
<image>logicalAND.png</image>
<code><![CDATA[
for (int i = 5; i <= 95; i += 5) {
if ((i > 35) && (i < 60)) {
stroke(0); // Set color to black
} else {
stroke(255); // Set color to white
}
line(30, i, 80, i);
}
]]></code>
</example>
<description><![CDATA[
Compares two expressions and returns <b>true</b> only if both evaluate to <b>true</b>. Returns <b>false</b> if one or both evaluate to <b>false</b>. The following list shows all possible combinations:<br /><br /><tt>true && false // Evaluates false because the second is false <br />false && true // Evaluates false because the first is false <br />true && true // Evaluates true because both are true <br />false && false // Evaluates false because both are false</tt>
]]></description>
<syntax>
<c>expression1</c> && <c>expression2</c>
</syntax>
<parameter>
<label>expression1</label>
<description><![CDATA[any valid expression]]></description>
</parameter>
<parameter>
<label>expression2</label>
<description><![CDATA[any valid expression]]></description>
</parameter>
<returns></returns>
<related>
|| (logical OR)
! (logical NOT)
if
</related>
<availability>1.0</availability>
<type>Operator</type>
<partof>PDE</partof>
</root>