Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. function MyPowershellFunction {
  2. param($param1)
  3. # ...
  4. # lot of code here
  5. # ...
  6.  
  7. # access variable x on private scope explicitly
  8. if ($private:x) {
  9. # do something
  10. }
  11. }
  12.  
  13. function MyPowershellFunction {
  14. param($param1)
  15.  
  16. # access variable x on private scope explicitly
  17. if ($local:x) {
  18. # do something
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement