Loop not stopping when cell reaches 0

I’m recreating Brain****, and I’ve got almost everything working correctly. The only problem is that when a loop starts, it doesn’t stop. It’s supposed to stop when it checks for a ] and the cell that was currently selected when the loop started is at 0. I don’t know how to fix this… anyone know how?
If you’re willing to help, the game is the second last game on my page, should be called “posting this for debugging help”

6 Likes

3 posts were merged into an existing topic: You Can Talk About Your Hopscotch Coding Here 28 [OFFICIAL]

When (parameter1) = (parameter2) {
Code
}

This will repeat as long as paramater1 = parameter2 and will stop when p1 /= p2

3 Likes

The problem is that the code for checking the characters in the script is like one giant if else block

4 Likes

So I’m not too sure how

4 Likes

Let me check your code rq

3 Likes

What’s your user?

3 Likes

My Hopscotch user is aadenboi

4 Likes

What part of the project is the code in?

3 Likes

Ok ill look at ur code.

2 Likes

It’s in the slide called “Free Play”, and the Text near the top left that should be called “Script Runner”

4 Likes

Oh wow ahaha

This is beyond me lol, best tag @/CodeHelp unless Nameless can fix it

3 Likes

Ok :sweat_smile:, thanks for trying though

3 Likes

Mhm! Sorry I couldn’t help

3 Likes

I can’t fix it. Way too complicated for me

3 Likes

Try tagging codehelp

3 Likes

Ok, but later since I’m in school rn, thanks for trying though!

3 Likes

@Codehelp, can you help me fix this?

7 Likes

what is it supposed to do? for me, it stops running if i press on “stop” button

3 Likes

what is what supposed to do?

3 Likes