Powershell - 邏輯運算子示例



以下指令碼演示了邏輯運算子。

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

> -NOT ($a -AND $b)
 False 
powershell_operators.htm
廣告
© . All rights reserved.