Powershell - Assignment Operators Examples


Advertisements

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