How to return true value for null list of records

Certified Senior Developer

I just want to understand why list of records(0 items) is not returning null/true in below scenarios.

I have problem returning the List of Empty Records to be empty/null.

Any thoughts??

We always practiced using null vs 0 vs "" vs {} depending on the type of data. However here {} for set of array records is not working to identify as null. Of course same behavior with CDT's as well.

  Discussion posts and replies are publicly visible