Today Hopscotch Beta v.3.22.0 (79) was released. It has a new feature, Custom Rules! It is like custom blocks, but it includes When blocks too! Release notes:
The beta contains Custom Rules. Custom Rules are like Custom Blocks: you can save a group of code and then use it on any object, as many times as you like. Like Custom Blocks, if you change the code in one place, it will change in every place you use that Rule. The different is that Custom Rules contains WHENS as well as code blocks. (Therefore creating complete rules that can be reused!)
We would love to hear what you think about this new feature:
- Is it helpful?
- Does it work?
- Can you find any examples where Custom Rules do not work as you’d expect?
Second, if you’re into this feature, we’d love your help creating our first set of default Custom Rules (blocks that will appear in every Hopscotch project), like the default Custom Abilities.
- These Rules should not be too complicated, but should do something cool.
- Think about when you were a new Hopscotcher: these are the first blocks you might explore using in a project. What would be exciting to you? What would be fairly easy to understand?
- Send us the link to a project with cool Custom Rules, and there’s a chance we’ll use your Rule in the app
For those without the beta, here is an image walkthrough.
(Click on the images for full size)
Custom Rules work just like Custom Blocks.
When you are adding rules, there is a new section on the keyboard for My Rules.
In this beta, there are two default rules: Drag Me and Fireworks.
This is what a custom rule looks like. You can open and close the “folder” like a custom block.
You can rename and delete the rules.
You can also nest Custom Rules inside each other. However, you can’t put the same Custom Rule inside itself, unlike the custom blocks.
Discuss the new beta on this topic!