Previous: How the System "Thinks", Up: Variables: The Connective Tissue [Contents]
As you can see, if you have ten different lamps, it’s much more efficient to define one variable and a couple of triggers than to write ten identical, complex logic blocks.
But let’s go back to our mantra: Abstraction!
A variable doesn’t just have to be a "switch" for lights. It could represent a "System State" (e.g., Home, Away, Night, Party). By changing one variable, you can trigger a cascade of hundreds of outputs across your entire network. You aren’t just writing rules anymore; you are designing a behavioral ecosystem.