Page 1 of 1

Show/Hide blocks by name

Posted: Mon Jan 01, 2018 12:36 pm
by dfriasb
Hello all and happy New Year!

I'm trying to write a script to show/hide specific blocks depending on their name. For example, I would like to control visibility of all the blocks that contain "_old" string in their name.

In order to "filter" these names I'm trying this piece of script:

Code: Select all

// ...
var BlockNamePart1 >= "A";
// I'm not really sure this variable definition is working in js...
if (block.getName() >= BlockNamePart1 + "_old") {
// I'm not sure this is possible neither...
Any help about this?

Best regards!