Well, that is something quite different from what you asked in the original post.
But you can insert whatever you like in the if-clause and merge() is a method of LayerSets anyway.
if (theLayer.name == theName) {theCheck = true};
Well, that is something quite different from what you asked in the original post.
But you can insert whatever you like in the if-clause and merge() is a method of LayerSets anyway.
if (theLayer.name == theName) {theCheck = true};