Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
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.