Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Detecting param variable input only

$
0
0

It's not really a good practice to overwrite the value of a parameter variable like that. Technically, though, you could check the value of $PSBoundParameters['x'] to get at the original argument that was passed in. Personally, I would just use two variable names, even if one is originally initialized as a copy of $x.


Viewing all articles
Browse latest Browse all 13067

Trending Articles