Break loop & if-else with flex properties doesn't work

When I use it with Flex properties it doesn’t work - loop is still working after condition was fulfilled

Снимок экрана 2024-06-28 в 12.02.21

Same thing with a regular times-loop.

Need full BP. How you change flex color?

Change by hand through onClick on flex.
Снимок экрана 2024-06-30 в 10.21.09

(It’s not urgent now, I’ve already managed by While loop)