How to clear the function?

Hi,
Do u know how to clear a function and add some new blocks in it? I mean for example if u click a button the first click will open screen 2 but the second click will open screen 3. Thanks in advance.

Hey @dementtor414nos,

You could do this with a stored variable that keeps track of the number of times that the button was pressed.

This would be quite common, for example, when the app is first opened prompt the user to sign up, but after they’ve signed up you don’t need to show the sign up screen every time the app has been opened.