Powershell - 邏輯運算子示例
以下指令碼演示了邏輯運算子。
powershellCopy> $a = 10
> $b = 20
> $a -AND $b
True
> $a -OR $b
True
> -NOT ($a -AND $b)
False
以下指令碼演示了邏輯運算子。
powershellCopy> $a = 10
> $b = 20
> $a -AND $b
True
> $a -OR $b
True
> -NOT ($a -AND $b)
False