Darshita
6 years agoNew Contributor II
How to check condition and route
Hi,
I want to check the value of Description in each item in the below JSON and route seperately if all are same and seperately if they’re different. How can I do this?
[
{
“SEGMENT1”: “104155”,
“DESCRIPTION”: “EUR”,
“UNIQUE_ID”: “224”,
“ITEM_NUMBER”: “0113”
},
{
“SEGMENT1”: “104154”,
“DESCRIPTION”: “AED”,
“UNIQUE_ID”: “224”,
“ITEM_NUMBER”: “0103”
},
{
“SEGMENT1”: “104153”,
“DESCRIPTION”: “USD”,
“UNIQUE_ID”: “224”,
“ITEM_NUMBER”: “0090”
},
{
“SEGMENT1”: “104153”,
“DESCRIPTION”: “USD”,
“UNIQUE_ID”: “224”,
“ITEM_NUMBER”: “0014”
},
{
“SEGMENT1”: “EXTRA_EVENT”,
“DESCRIPTION”: null,
“UNIQUE_ID”: null,
“ITEM_NUMBER”: null
}
]
Regards,
Darshita