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