Can you not do an "If" statement on string values for layer properties like backgroundColor?
If layer.backgroundColor == "FFFFFF"
Using this syntax yields no results
It's because it's a color object
You can do:
Ah, good call, Fran Pérez! Or sticking with the "if" sytax:
There are a few methods to get the and hex values from the object as well.
You can use the colorA.isEqual(colorB) method.