Safely try not working for me

I was wanting to use the safely try block with a custom block that uses JavaScript but found it didn't seem to work

So I tried some simple stuff out and that doesn't seem to work either
1st script works
untitled script pic (83)

2nd errors (as expected)
untitled script pic (84)

But 3rd also errors
untitled script pic (85)

untitled script pic

Ta :slight_smile:

Never occurred to me that the then if slot needed filling in :slight_smile:

I think that I'll save this version of it in my local useful blocks folder for future use

untitled script pic (87)