Forum Discussion
sravankunadi
3 years agoNew Contributor II
Thanks @AleksandarAngelevski for your help. Iam getting the below error
Aleksandar_A
3 years agoContributor III
Hi @sravankunadi,
This would be a case if there is no response with a entity.success == false.
You can separate the process of getting the index and later you can check if the index != -1.
So, If the index != -1 then you can access the latest response with entity.success == true with $group[index-1]
. And if the index == -1 then you can just use $group.pop()
.
BR,
Aleksandar.