Hi, when i inserted the “break out of loop” block into my app it gave me a notification that went like this:
“Internal error generating code for blocks”
I hope Thunkable Support can get this sorted out as soon as possible. Thanks.
Hi, when i inserted the “break out of loop” block into my app it gave me a notification that went like this:
“Internal error generating code for blocks”
I hope Thunkable Support can get this sorted out as soon as possible. Thanks.
Hi! @julianair2002874i, can you try ‘hard refreshing’ your browser? There was an update pushed out in the last couple days to address what you are talking about i think.
I am also imagining you are using Thunkable X, is that correct?
Just tried out the hard refreshing, still facing the issue. Thanks though! And yes, I am using Thunkable X.
Weird. Can you post a share link to your app?
I’ll move this post to the #thunkable-cross discussion board.
If you provide a share link I can check this out. I am unable to produce this error on my own.
Sorry, I would love for you to help but my app is confidential for now as it is being made for personal use and contains some API keys and passwords.
Has a fix been found? When using the “break out of loop” block it crashed in live test mode.
-Sam
There wasn’t any problems. Someone reported an issue but does not want to show the project or create a minimalised project showing the problem.
No one can fix a problem that cannot be reproduced.
So this is part of my code. It is a game with a leaderboard. This is testing if the players score is higher than others on the leaderboard OR if they tied it has to check each score it tied with to find fastest time. I need it to stop once determines it has “beat” another score and give me that position in the list so the players name and score can be inserted and the list updated.
How do you know that break out of loop
is not working in this code?
So when I test code without the block thunkable does not crash, as soon as I put it back in thunkable freezes and I must close and reopen everything. I do not know if it just because it is in live testing or what but it will complete freeze. I tested this one if statement at a time with a label so I know it will run through each statement, but I need it to stop the loop when it returns the first true statement, not the whole list.
You are breaking out of an inner loop not the outer loop and using the same looping variable “i” in both loops which reset the counter of the outer loop every time a breakout takes place.
If you register your code you would realise that you are only executing the inner loop at the end of the outer loop which means you can taker the inner loop outside and make it execute immediately after the first loop to get the break out of loop
to work properly.
I changed the variable “i” and it now works. Thank you for pointing that out, I didnt realize that it was hanging up that way.