Last active
September 4, 2015 16:01
-
-
Save guitarrapc/03935f5b41466093e0c5 to your computer and use it in GitHub Desktop.
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
(1,2,3) -ne $null # 1 と 2が返る。つまり if ((1,2,$null) -ne $null){} なら true 扱い | |
# not null が返る | |
$array = @($null,1,2); | |
if ($array -eq $null) | |
{ | |
"null" | |
} | |
else | |
{ | |
"not null" | |
} | |
# null が返る | |
$array = @($null,$null,1,2); | |
if ($array -eq $null) | |
{ | |
"null" | |
} | |
else | |
{ | |
"not null" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment