What's wrong with this while loop??

Nvm check your array sizes and conditionals everyone

Hey meimeicheng,

It seems like you’re “Num Doors Open” variable is never going to be equal to 3 and your array will eventually be empty. This is probably whats causing the crash. You need to be able to exit the WhileLoop when running it; make your “Num Doors Open” = 3 after the WhileLoop. I’m assuming you probably only want to check once on the overlap, you probably want to do a Branch instead if a WhileLoop.

Branch- if (“Num Doors Open”+1) != 3 is True, execute your code after the WhileLoop(obviously without the WhileLoop)

yeah, thats essentially what I was stating