forked from processing/processing-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathequality.xml
More file actions
executable file
·58 lines (44 loc) · 1.32 KB
/
equality.xml
File metadata and controls
executable file
·58 lines (44 loc) · 1.32 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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>== (equality)</name>
<category>Control</category>
<subcategory>Relational Operators</subcategory>
<usage>Web & Application</usage>
<example>
<image></image>
<code><![CDATA[
int a = 23;
int b = 23;
if (a == b) {
println("variables a and b are equal");
}
]]></code>
</example>
<description><![CDATA[
Determines if two values are equivalent. The equality operator is different from the assignment operator.<br />
<br />
Note that when comparing String objects, you must use the <b>equals()</b> method instead of == to compare their contents. See the reference for String or the <a href="http://wiki.processing.org/w/Troubleshooting#Why_don.27t_these_Strings_equal.3F">troubleshooting</a> note for more explanation.
]]></description>
<syntax>
<c>value1</c> == <c>value2</c>
</syntax>
<parameter>
<label>value1</label>
<description><![CDATA[int, float, char, byte, boolean]]></description>
</parameter>
<parameter>
<label>value2</label>
<description><![CDATA[int, float, char, byte, boolean]]></description>
</parameter>
<returns></returns>
<related>
> (greater than)
< (less than)
>= (greater than or equal to)
<= (less than or equal to)
!= (inequality)
</related>
<availability>1.0</availability>
<type>Operator</type>
<partof>PDE</partof>
</root>