Description:
Assign result of computing an expression on a variable to this variable.
Syntax:
a?=x
Note:
A variable value will undergo a certain computation with an expression to assign a new value to the variable. This operation computes expression a?x on variable a and assigns the result to this variable.
Parameter:
|
a |
Variable name. |
|
x |
Legal expression. |
|
? |
An operator, which can be +, -, *, /, \, %, |, ^ and &. |
Return value:
Variable value
Example:
|
|
A |
|
|
1 |
=a=7 |
|
|
2 |
=a-=4 |
3 |
|
3 |
=b=[0,1,2] |
|
|
4 |
=b|=[2,3] |
[0,1,2,2,3] |