Code:
$arr=@()
if($arr -ne $null){"NE"} else{"E"}
if($null -ne $arr){"NE"} else{"E"}
Output:
E
NE
How is this possible ?
Code:
$arr=@()
if($arr -ne $null){"NE"} else{"E"}
if($null -ne $arr){"NE"} else{"E"}
Output:
E
NE
How is this possible ?