Powershell Operators



= is used to assign values.
+ is used to add values.
The assignment operator = is used to assign values to Powershell variables.
The arithmetic operator + is used to add values together. Example

Example

$y=3;
$z=2;
$x=y+z;

Copy and Try it

The result of x will be: 5

Arithmetic Operators
Arithmetic operators are used to perform arithmetic between variables and/or values.

More details Powershell Operators

More details on Array-Hashes