Posted On: Feb 22, 2018
The $null is a variable in the PowerShell that is used to represent NULL as the name suggests. It can be assigned to a variable, use it for comparisons, etc. In PowerShell, $null is an object that holds the value of NULL. To assign $null, use the following command
PS> $null –eq $variable
Here, the $variable holds the value of $null.
Never Miss an Articles from us.