mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 18:10:43 +01:00
60 lines
869 B
XML
60 lines
869 B
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<root>
|
|
<name>+= (add assign)</name>
|
|
|
|
<category>Math</category>
|
|
|
|
<subcategory>Operators</subcategory>
|
|
|
|
<usage>Web & Application</usage>
|
|
|
|
<example>
|
|
<image></image>
|
|
<code>
|
|
int a = 50;
|
|
int b = 23;
|
|
a += b; // sets "a" to 73
|
|
</code>
|
|
</example>
|
|
|
|
<description>
|
|
Combines addition with assignment. The expression <b>a += b</b> is equivalent to <b>a = a + b</b>.
|
|
</description>
|
|
|
|
<syntax>
|
|
<c>value1</c> += <c>value2</c>
|
|
</syntax>
|
|
|
|
<parameter>
|
|
<label>value1</label>
|
|
<description>int or float</description>
|
|
</parameter>
|
|
|
|
<parameter>
|
|
<label>value2</label>
|
|
<description>any numberical value the same datatype as value1</description>
|
|
</parameter>
|
|
|
|
<returns></returns>
|
|
|
|
<related>
|
|
= (assign)
|
|
+ (add)
|
|
-= (subtract assign)
|
|
</related>
|
|
|
|
<availability>1.0</availability>
|
|
|
|
<type>Operator</type>
|
|
|
|
<partof>PDE</partof>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</root>
|