Question by
TheHallucinations · Apr 28, 2020 at 02:26 PM ·
foreach
Foreach loop stop
I got a foreach loop and lets say i got objects with bools like isRoad and isBuilding a want to stop the block of the foreach loop its now on if its a road so not stopping the whole foreach loop just skipping the onces with isRoad = true Thank You in advance
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612232709im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
c# foreach does not work 0 Answers
Retrieving values from list of Scriptable Objects 1 Answer
foreach raycast hit fmod parameter -0.2 f? 0 Answers
InvalidOperationException: Collection was modified; enumeration operation may not execute. 0 Answers
Foreach and GetComponentInChildren, getting NullReferenceException 1 Answer