Scope control block

A feature I’d like to see in Hopscotch is:

A block similar to a check once if 7=7 block that will limit the scope of certain variables

I’d use it for this type of project:

Any project where I want local variables for only one or two blocks.


How interesting – when talking about the feature over the summer, we had the idea but thought it might be confusing for new users. But, to be fair, languages like JavaScript allow you to do exactly that:

console.log('test') //test
  const a = window.innerWidth + 200
  console.log(a) //1224 (your viewport + 200)
console.log(typeof a) //undefined