Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Newbie... What does the if statement mean ---> if (!$?)

$
0
0

I inherited some code

if (!$?) {

 

 

throw"An error occurred while processing the file."

}

 

I understand it can check "if an error" but how & what or here is it checking... 


Viewing all articles
Browse latest Browse all 6937

Trending Articles