Powershell - 雜項運算子示例

以下指令碼演示了其他運算子。

> $location = Get-Location
 
> $location -is 'System.Management.Automation.PathInfo'
 True
 
> $location -isNot 'System.Management.Automation.PathInfo'
 True
 
> $i = 1
 
> $i++
 
> $i
 2