April 29, 2016 at 5:00 pm
How to typecast the NULL value to 0 in Powershell?
Getting the below error as one variable got the null value while the table is empty.
Method invocation failed because [System.DBNull] does not contain a method named 'op_Addition'.
Thanks.
April 30, 2016 at 12:15 pm
powershell?[int] $a = [System.Management.Automation.Language.NullString]::Value
$a -eq $null
from https://www.codykonior.com/2013/10/17/checking-for-null-in-powershell/
May 2, 2016 at 12:27 pm
Thanks Steve!!!
Thanks.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy