While or do while logic in expression rule

How to implement while or do while logic in expression rule?

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to shreeharshan0678

    We do not have a looping function that would stop based on a condition. All you can do is use a!forEach just like Harshit mentioned in his answer. You might have to do it in multiple steps, at least two. The first one to exclude values greater than 31, for which you can use filter, reject, wherecontains, and/or a!forEach. Second step would be to update each item in array based on the condition specified inside the while loop, for this you can use a!forEach.

Children