Operátory přiřazení

Variable = Expression Direct assignment.
Variable += Expression Assignment with addition.

This is a synonymous for Variable = Variable + Expression
Variable -= Expression Assignment with substraction.

This is a synonymous for Variable = Variable - Expression
Variable *= Expression Assignment with multiplication.

This is a synonymous for Variable = Variable * Expression
Variable /= Expression Assignment with division.

This is a synonymous for Variable = Variable / Expression
Variable \= Expression Assignment with integer division.

This is a synonymous for Variable = Variable \ Expression
Variable %= Expression Assignment with integer modulo.

This is a synonymous for Variable = Variable % Expression
Variable &= Expression Assignment with string concatenation.

This is a synonymous for Variable = Variable & Expression
Variable &/= Expression Assignment with path concatenation.

This is a synonymous for Variable = Variable &/ Expression

Viz také