Question:
What does the special character !
mean in PowerShell?
Or a site which lists all special characters and meaning.
Example:
1 2 3 |
$string = blah !$String |
(Returns $false)
Answer:
PowerShell uses the !
character as an alias for the logical -not
operator:
1 2 3 4 5 6 7 8 9 10 |
$true !$true $false !$false True False False True |