How to turn a block of code into a variable/smth that can fit into an oval?

I’d like to be able to put some scripts inside of a list, so I can do things like “if cond1, do item 1 of list; if cond2, do item 2 of list; etc.”

Is there a way I can do that? It would also be handy for being able to interrupt scripts if a condition is met, since I could do “for each item in list, if cond, run”

Not sure which part of this you don’t know, so:

  1. To ringify a script, right-click it and choose “ringify.”
  2. Then you can drag the oval into an input slot of LIST (or anything else, of course).

As for interrupting scripts, you can use untitled script pic (10) if that meets your needs. If you have to stop just one other script, then that script has to cooperate, e.g., by using


instead of

Or continuations (Snap! has amazing continuation support)