-
-
Save bielawb/b0d517beda544b665592cb0d8586348c to your computer and use it in GitHub Desktop.
Niekoczekiwany wynik
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$obiekt = [PSCustomObject]@{ | |
Foo = [PSCustomOBject]@{ | |
Bar = $false | |
} | |
} | |
# wymuszamy porównanie ciągów znaków - dostajemy $true | |
$obiekt.Foo.Bar -like 'False' | |
# pozostawiamy sprawę konwersji "prawy do lewego" - dostajemy $false | |
$obiekt.Foo.Bar -eq 'False' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment