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?
5296 7 0- olivierth
- Member
- 1074 posts
- Joined: April 2017
- Offline
- tamte
- Member
- 8780 posts
- Joined: July 2007
- Offline
- olivierth
- Member
- 1074 posts
- Joined: April 2017
- Offline
- olivierth
- Member
- 1074 posts
- Joined: April 2017
- Offline
- tamte
- Member
- 8780 posts
- Joined: July 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 - Feb. 28, 2019 14:29:53
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- olivierth
- Member
- 1074 posts
- Joined: April 2017
- Offline
- olivierth
- Member
- 1074 posts
- Joined: April 2017
- Offline
- aaryanguna
- Member
- 27 posts
- Joined: Dec. 2016
- Offline
-
- Quick Links