PowerShell Version 3 if..else bug

Mapporc…!!!! Comunque non ho capito se posso installare la versione italiana

Avatar di Karl MitschkeUnlock-PowerShell

Consider the following from PowerShell’s excellent help:

Get-Help about_If

001
002
003
004
005
006
007
008
if ($a -gt 2) 
{
    Write-Host “The value $a is greater than 2.”
}
else
{
    Write-Host “The value $a is less than or equal to 2, is not created or is not initialized.” 
}

If you modify that example to tighten it up a bit, and make it look better you can cause the else to fail.

Consider the following:

001
002
003
004
005
006
if ($a -gt 2) {
    Write-Host “The value $a is greater than 2.”
}
else {
    Write-Host “The value $a is less than or equal to 2, is not created or is not initialized.”
}

The above example still works, and uses two less…

View original post 616 altre parole

Se hai verificato che quello che scriverai è vero, che è qualcosa di buono sull'argomento ed è utile che io lo sappia, ma soprattutto SE SAI USARE LA PUNTEGGIATURA, dimmi: