Why doesn't this workflow work?

I’m having a little trouble with a workflow.
Right now I have two workflows. The first one engages upon a page load. It works fine, in that it does what it is supposed to do, and breakpoints and debugging work fine.

I have a state variable, lets call it “phase”, and it defaults to 1. Phase stays as 1 then entire time the page load workflow is going. The last step of the upon page load workflow is to set Phase to 2. I know this works because the visibility of something changes when phase is 2. yay.

Ok, so it changed from 1 to 2. So I made a workflow that engages when this state changes from 1 to 2.

This workflow never engages. the data it uploads doesnt come in, the state doesnt change to 3, and the breakpoints never stop the program.

Why doesnt this work?

Have you debugged using a simpler workflow, but triggered by the same “Do When” event?

I have now. It worked. With a slight difference. In the first one I could reference the trigger by using the state that is attached to index.

On the second one I had to say “this page’s index phase”