How do I make another button after every 5000 steps on the pedometer?

That only handles the first 5000 steps, what about the the second (10,000) and third....

I thought what @matej2_22 wanted was to make different screens for each 5,000 step landmark.
Edit: Although now that I think of it, that would be quite tacky.

secound after10k

Got it, in that case you're going to have to use an extension to create more buttons.

Yes :slightly_smiling_face:

Here's an extension you could use (note: you will have to have an account and be signed in to Kodular to download this) [F/OS] - Dynamic Components Extension (for every component) 2.2.2 - Extensions - Kodular Community

Not necessarily use an extension. You can pre-populate your app with Buttons; hide them; make them visible when needed. Only you know what you want your app to do.

Alternatively, rather than change Screens, use virtual screens.

Imagine the user wanted to create an infinite number of buttons.

image Something isn't working, the button does not want to appear after the distance traveled

i have it.............

What is happening on Screen4?

There is a picture and a button to go back.

This solution is innaccurate.

Therefore, do you need a different screen after every 5000 steps, or a different picture to appear ?

If we know what you are trying to achieve, we can better help you....explain what your app will be doing, rather than leave us guessing.....

Did your app go to sleep before your step count got to 850? The Pedometer doesn't post steps while the app is in the background. Do a DoIt to determine whether you reached a total of more than 850 steps.

different screen

The application counts even if another application is used or the mobile is turned off

Try setting the threshold to 10 steps and walk while the app is in the foreground.

The button is still not visible.

This simple code works fine on my Android 8.1

Pedometer

That the example code works and your SimpleSteps>= 850 does not suggests that even though the pedometer 'counts, the app cannot execute the if statement while the app is asleep. I don't know but I do know that the Button1 in the example is hidden when the app starts and displays when it reaches a count of 5 while the device screen is still open.

See Pedometer work in background
and experiment and debug using a DoIt.