You ask:
Just for my own knowledge, why did that fix it? I don't understand the difference between having the layer show when the timeline starts versus at 0.25 seconds. It seems like it would work either way (but obviously not).
It isn't a question of when the layer shows, it is when the variable changes. It does work either way. It's just that without Jurgen's delay, it opens all the layers too fast for you to see them. When you have a list of triggers associated with one action, the action causes the whole list to be executed. It doesn't stop when it finds the first true condition. The layers are changing the variable fast enough that every IF is true when the system comes to it. One way to avoid that is the delay.
Another way would be to reverse the order of the triggers, so, for example, the way it is now, when the system comes to #6 and shows that layer, the layer changes the variable to #7 in time for it to be true when the system reaches trigger #7. With the delay, the variable isn't changed to #7 until after the system is past #7. With the triggers reversed, it doesn't matter if the layer changes the variable to #7 before the system gets to the #5 trigger.