Can someone please explain to me why the equality operator in PowerShell is not a symmetric relation??
PS> \"\" -eq 0 False PS> 0 -eq \"\" True
It is how PowerShell tries to convert the type and then compare.
Check this:
$false -eq ""
This returns True as well.