Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
This is another question for jstap or roar. Using an ENUM variable, maybe?
I would use enum, or just a bool if only 2 are needed if true pass through orange and activate all blocks for type 1, if false pass through yellow and activate all blocks for type 2.