An assignment operator is a programming construct that gives a value to a variable. In NWScript, the basic (and most common) assignment operator is the equals sign (=). There are also assignment operators that update the value of a variable, namely +=, -=, *=, /=, %=, |=, and &=. For a simple assignment, the variable being assigned a value goes on the left of the operator, while the value to be assigned (an expression, possibly containing other operators) goes on the right. In the case where the value 1 is being assigned to a variable named x, the following line would be used. x = 1; int x = 1;
| Graph IRI | Count |
|---|---|
| http://dbkwik.webdatacommons.org | 4 |