Powershell - Logical Operators Examples


Advertisements

The following scripts demonstrates the logical operators.

> $a = 10
 
> $b = 20
 
> $a -AND $b
 True
 
> $a -OR $b
 True

> -NOT ($a -AND $b)
 False 
powershell_operators.htm
Advertisements