BackPressed ... problems

Hello.
Can anyone help?
I have 5 Screens. I use a BackPressed block. If, for example, I use it in Screen5, so I don't see Screen4, but it ends up in Screen1 in quick succession... What is the solution, can someone advise?

Senior1954

Can you show your relevant blocks?

and advise on how you get to Screen5...

obrázok

This block is repeated in all Screenocs, only with a different result value.

obrázok

From where, all four other screens or just one ? Which one ?

If from all other screens, does the issue arise from any of them ?

Gradually, Screen2 is called from Screen1...some activity is done there and Screen3 is called...etc. Finally, I want to go back to Screen4 from Screen5, but it just happens in a flash and stops at Screen1.

Can you share your aia?

As long as you are switching screens correctly, you should just need a closeScreen block on your backpressed event to take you back to Screen4.

Show the blocks of Screen5 (and post the aia).

Are you talking about Android or iOS?

Android

Ok then ...

Hello.
I fixed it as suggested by TIMAI2. I put only in all Screens in BackPress only
obrázok

and it works now!
thank you all for your help!
Senior1954

Hmm, I don't understand how this (i.e. the closeScreen block) ensures that you return to Screen4. :woman_shrugging: :thinking: