Dot Walking Complex Array in UI Builder Data BINDING

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2024 10:36 PM - edited 03-03-2024 10:38 PM
Let's assume i have a complex array:
{
"payload": {
"value": [
[
"ABC",
"XYZ"
]
]
}
}
I want to check the values in payload.value.0 if the first element is ABC and second is XYZ in DATA BINDING option in UI Builder.
I am trying @payload.value.0.0 == "ABC" && @payload.value.0.1 == "XYZ" but it's not working and getting replaced with @payload.value.0 == "ABC" && @payload.value."0.1" == "XYZ"
How can i access multi-dimensional array like this? Please note that i don't have option to use Script type in creating the condition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 01:33 AM
Hi @sushant06251,
You can try this
@payload.value[0][0] == "ABC" && @payload.value[0][1] == "XYZ"
Please hit helpful and accept this as a solution if it solved your problem.
Thank you!