mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 18:10:43 +01:00
64 lines
1012 B
XML
64 lines
1012 B
XML
<?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>
|
|
int a = 23;
|
|
int b = 23;
|
|
if(a == b) {
|
|
println("variables a and b are equal");
|
|
}
|
|
</code>
|
|
</example>
|
|
|
|
<description>
|
|
Determines if two values are equivalent. The equality operator is different from the assignment operator.
|
|
</description>
|
|
|
|
<syntax>
|
|
<c>value1</c> == <c>value2</c>
|
|
</syntax>
|
|
|
|
<parameter>
|
|
<label>value1</label>
|
|
<description>int, float, char, byte, boolean, String</description>
|
|
</parameter>
|
|
|
|
<parameter>
|
|
<label>value2</label>
|
|
<description>int, float, char, byte, boolean, String</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>
|