Old blocks

Here is an old block museum where I brought old blocks back from older versions:

The museum

the “cases” block seems interesting: its like a very convoluted else-if:

it is a little broken, however.

Yes, it was a library block back when variadic if-else didn’t exist. The report issue you described is because of the “context” of the report block. That report block is causing the “else if” predicate to report "hello" instead of the typical true that tells the cases block not to keep moving through the cases, and instead of causing the outer call to report "hello".

I’m pretty sure you could still get the undefined one today, no?

Do you like the project

It was very hard to implement though. Script pics from older versions didn’t import very well into the newest version

The undefined! one is probably a block which failed importation

Edit: NVM

Well, not really. If you import a block that fails importation nowadays, it’ll put the block in your costumes and then there will be no “get blocks” option.

You could also try using “export script”, which doesn’t include an image and so wouldn’t show up in the costumes tab.

you can still get it without.

Well, some blocks in the project I made weren’t imported. You see, while projects made in newer versions are unable to run in older versions, projects made in older versions can run in newer versions. I used what I call the trap method to get some blocks. I made a project in an older version, then ran that same project in a newer version to retrieve the block. In some older versions, there was no “export script” or “script pic,” so, I had to use the trap method.

And yes, in some older versions, there was a “script pic” option. But after importation into a new version, it would look like this:

Here’s something to know about the ones you don’t know, since the first time I used Snap! is in late 2021.

The four bottommost blocks, the “cases” C block, “throw” block, “else if then” boolean block and “else” boolean block have the following definition:

  • “cases” C block: It’s like the current “if” block that can be extended, but with cases stored as booleans as in older versions it’s not possible to make grouped multi-inputs like now.
  • “throw” block: when put inside a “catch” block, running the block will exit the script inside the “catch” block early.
  • else if boolean block: Used in the “cases” C block for the 2nd, 3rd, 4th… conditions. It is actually a boolean block that stores the action. You put a condition and the case inside the condition will run when the condition is met.
  • else boolean block: Used in the last condition of the “cases” C block when none of the previous conditions are true.

Replies to some posts (all in one!)

(bruh the 2-user mention limit)

to gplb2718

“Cases” block does not work in the “call” block because of how the “report” block works in cases. It seems a bit buggy so I can’t explain it too internally. It should work without using call, so you may try to do it in a custom block manually without having to use the “call” block. Sorry if this post was a month ago though…

to sathvikrias

I don’t think there is any evidence of the unobtainability of the “undefined” block. It is always obtainable through various obscure glitches.

to henhen123

That’s because older versions of Snap! do not embed the script XML in the image when exporting script pics, so that’s why this happens.

I’m aware, that is why I used the trap method for those blocks.

How old were you getting? Even in snap 4.2, you could do this:


which is the same as export script.

The reason it doesn’t report in the outer call is because the report block in the c-shape causes the else predicate to report:
untitled script pic
If you look at the definition:


This works the same as

Which you would expect to cause the else statement to report “error” instead of “True”.

Sure the smart script pics were relatively new (can’t remember when they were added), but the export script and export blocks features have been available from the beginning. You can shift+click a script and a hidden “download script” or “export script” option will appear (it was renamed in v7). It wasn’t until v8 when that option was properly exposed without holding shift.

The ezport blocks option in the file menu has always been around, and is used to export custom blocks, which you can select the blocks you want to export.