Question

2
Replies
306
Views
KannanM3 Member since 2019 18 posts
Idexx Laboratories
Posted: 6 months ago
Last activity: 6 months 3 weeks ago
Closed

Check a property is null from the list

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.

 

***Edited by Moderator Marissa to update Content Type from Discussion to Question***

 

Pega Academy
Moderation Team has archived post
Share this page LinkedIn