Try...except block

Hello, so, I have a block that can possibly return an error. I want to encapsulate error-prone logic in an error handling block. For example...

error-prone code

I think there is a block primitive for this functionality, I just forgor how it's called

P.S.: I want to detect if JS is on or not.

File>libraries


I was thinking of something like that :stuck_out_tongue:

But how do you import a library?

The file icon next to the right of the snap logo (left of the cloud) makes a menu appear when clicked. Choose libraries

Oooooh I understand! Thanks for helping :smiley:

The PRIMITIVE block got renamed to extension in snap 10.

Youre welcome!

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