Hi!
If I want to iterate a number of times but I want to stop if a condition is met. For example, lets say I want to stop once the geo's bounding box is too big. Any ideas?
-Olivier
for-each loop with stop condition?
5398 7 0- olivierth
- Member
- 1075 posts
- Joined: 4月 2017
- Offline
- tamte
- Member
- 8833 posts
- Joined: 7月 2007
- Offline
- olivierth
- Member
- 1075 posts
- Joined: 4月 2017
- Offline
- olivierth
- Member
- 1075 posts
- Joined: 4月 2017
- Offline
- tamte
- Member
- 8833 posts
- Joined: 7月 2007
- Offline
yes, the stop condition is evaluated before the iteration is run and if it's true, the iteration is not run
you can always pass the detail attribute you are using for condition from the previous iteration, and reference it from the start of the iteration so that it's evaluated at the start of next iteration to get the result you want
you can always pass the detail attribute you are using for condition from the previous iteration, and reference it from the start of the iteration so that it's evaluated at the start of next iteration to get the result you want
Edited by tamte - 2019年2月28日 14:29:53
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- olivierth
- Member
- 1075 posts
- Joined: 4月 2017
- Offline
- olivierth
- Member
- 1075 posts
- Joined: 4月 2017
- Offline
- aaryanguna
- Member
- 27 posts
- Joined: 12月 2016
- Offline
-
- Quick Links