Question

2
Replies
241
Views
KannanM3 Member since 2019 19 posts
Idexx Laboratories
Posted: 7 months ago
Last activity: 7 months 4 weeks ago

Check null, "", " " and missing property

I have a  list where each object is another list, now I need to get to the second list get the object and check if the property is "", "  ", null or is the property is missing, let me know how can I do this.

I tried @compares and @equals but both are not working.

 

1st List - Customer

2nd List - Address

 

Customer[1].Address[2].street == ""

Customer[1].Address[2].street == "   "

Customer[1].Address[2].street = null

During mapping from json the "Customer.Address.street may not even be there, so I need to check all the above 4 conditions.

Pega Academy
Share this page LinkedIn