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") {
Block.showHide(false);
// I'm not sure this is possible neither...
op.addObject(layer);
//...
Best regards!
David