以下脚本演示了逻辑运算符。
> $a = 10 > $b = 20 > $a -AND $b True > $a -OR $b True > -NOT ($a -AND $b) False
❮ powershell_operators.html