Internal Error Generating code for blocks, how to fix?

image
This is the code i’m working on. Basically what I want it to do is pop up an alert, if ‘yes’ is clicked, stop the loop, otherwise keep on going. However, when I connect the ‘break out of the loop’ block, an Internal Error shows up. How can I fix this?

1 Like

After a bit of testing it appears to be because it was placed inside the alert block. I’ve managed a workaround for the time being but I would be grateful to know the reason for the bug in the first place so I can avoid it.

Would you mind sharing the link of your project?

I don’t think I can, as this is for a competition and has some api keys and stuff. But if you need any details I can give em to you.

1 Like

I’m not sure if you can break out of a forever loop. I’ve never tried. But the error could be because there’s not a loop block (other than forever) for it to break out of. If you need to do something like that, consider using a repeat while/until block instead of forever.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.