Powershell - Assignment Operators Examples



The following scripts demonstrates the assignment operators.

> $a = 10
 
> $b = 20
 
> $c = $a + $b
 
> $c
 30
 
> $c += $a
 
> $c
 40

> $c -= $a
 
> $c
 30 
powershell_operators.htm
Advertisements