Transaction items are zero not is executing process single transaction

Hi All,

We are fetching get transaction item in Fetch next transaction. In fetch I had given condition like “current transaction is nothing”.
I had declared one variable in Main “endprocess” it’s a Boolean variable(by default it’s false) and I am calling this variable in load single transaction in condition like "end process =True
After one transaction completed I am turning end process as True.
My issue is after one transaction it should go to “Notimes” and it should fetch next transaction but it is going to false condition and going back to process single transaction.how to resolve this please help