Hi Everyone,
I am relatively new to C# and this is a C#/SDK question. I have been switching back and forth between DBNull.Value versus null to identify null values. Can you someone confirm which is the correct one to use for my case? I am performing calculations using the data from a geodatabase table. Each set of values used for the calculations are associated with an ID. Some ID have null values. Therefore, I want to skip the calculation for those ID's with null. Then, the calculation is populated into a new output feature class's attribute table. I want to have nulls for those ID without any values in the output, instead of zero values. At the moment, I have the two scripts options below. They are performing different calculations, but the conditions are the same.

or

Which one is correct? Is there a better way of output null values, instead of using lFound_Rep = true (values are available) and lFound_Rep = false (values are not available or null) ?
Thanks for your help!