How to implement while or do while logic in expression rule?
Discussion posts and replies are publicly visible
Could you please elaborate your requirement? Why you are looking for while and do while logics?
something similar like this
While(i<31)
{
if(i=15)
exit;
}
else
i--;
You cannot implement a while or a do while loop in Appian. You only have to live with a!forEach. It expects a list to operate on. This loop will run once for every item in the list.
Now to exit the loop in between, is not possible. But what is possible is to set the output value after your condition to null and then outside the loop, remove all the null values using reject() function.
There has to be some way to implement the same logic since While and Do while basic looping functionality in programming languages.
I tried any() function but it is giving me error.
Any is the looping function you can not use that.
I need looping function where condition of the loop return true or false.
In that case you have to use if condition only.