Is there a "stop this block" block?

I want to make it so that inside my custom block, there is a condition that can be passed that will end the block entirely. The "stop >this block" block isn't working.

stop this script

drag this block into snap
untitled script pic (2)
or just find it in snap

The "stop >this block" block isn't working.

I don't believe you; I think it's stopping the block but then you're calling it again. Could you share a project with this problem?

The problem is with the "Mash ____ button" block. If you take too long it should say "fail" and end the block, but after it does that the block still runs until you complete the task.

There doesn't seem to be a stop block in the project

Sorry, I forgot to save. Try it now?

Your stop block will only stop the launch script it is in

I'm sure someone will come along and give you the code to stop the whole custom block but it's beyond my skills

Thanks anyways

maybe try reporting nothing to end it?

I thought someone else might have come back with an elegant solution but here is one that uses a flag to tell the whole script to end

Not 100% accurate but could do what you want

It works great! Thank you!

I tried to solve this problem elegantly and failed. That doesn't mean there isn't a way to do it, but it means the way, if any, isn't obvious. What I think should have worked is


... but it doesn't.

(The above is a non-smart picture because when I try to make a smart one I get this:


Everything is broken for me...)

Edit: I guess it doesn't work because a script and a process aren't the same thing. Maybe we need a THIS PROCESS option?

Good try anyway. I mean I don't even know what a process is in the first place, so you're doing better than me

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