In VB.NET I always used If Not Object is nothing just to be sure that I am working with real object.
In PowerShell, this can be done very easily:
If ($Object) {...}
or
If (!$Object) {...}
Easy, powerful and useful, I love this :)
Martin
Blog about technologies I work with every day and I love - scripting, SBC, small utilities, tips and tricks...
In VB.NET I always used If Not Object is nothing just to be sure that I am working with real object.
In PowerShell, this can be done very easily:
If ($Object) {...}
or
If (!$Object) {...}
Easy, powerful and useful, I love this :)
Martin
1 comment:
I have a great fun reading your blogs.Thank you for making this beautiful and awesome blogs. Hope to read more post from you in the future. Please dont forget to visit me in my site @ www.imarksweb.org. Thank you.
Post a Comment