I defined an array as below:
$array =@($null)
On comparing this array with $null the output suggests it’s not null
if($null -eq $array)
{
'Array is $null'
}
–> Doesn’t return any value
Isn’t this a null array? If not, why?
I defined an array as below:
$array =@($null)
On comparing this array with $null the output suggests it’s not null
if($null -eq $array)
{
'Array is $null'
}
–> Doesn’t return any value
Isn’t this a null array? If not, why?