Skip to Content
0
Jul 22, 2020 at 10:33 AM

if else if scripting in sap cai

317 Views Last edit Jul 22, 2020 at 10:40 AM 3 rev

Hi,


I am doing a API request and getting an array as response and I want to compare the array entries something like

currently i am restricted to compare only one value,

how to include multiple conditions like nested if conditions,

do we have nested scripting in CAI where i can compare multiple values and show output accordingly

and also how can use variable of variable for ex. results[number] where results is an array and number is an variable initialized in the memory, something like : {{results[ {{number}} ]}}

Thanks
Kishore

Attachments

nested2.jpg (59.1 kB)
normal-if.jpg (33.0 kB)