function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RhondaBRhondaB 

How to check for a null value

Hi. In my app and querying OpportunityLineItems. It the Line Description field is blank I get an error. How can I check for Nulls? I need something like ado.net uses
if (! rReader.IsDBNull(iDescription))

Thanks,

Rhonda
SuperfellSuperfell
if (li.description != null) {
// do something interesting with li.description
}
RhondaBRhondaB
Weird. I swear I tried that exact same thing earlier and it got an error. Now it works. Thanks.

Rhonda