Count seconds by adding one to a variable on every turn of the loop.

This tutorial is part of the Nairda learning path. You can build it step by step inside the app, which checks every block you place before letting you move on.


The steps

  1. We add a While loop, which repeats forever.
  2. We create a number variable called seconds.
  3. Inside the loop we wait 1000 milliseconds, which is one second.
  4. Behind it we set seconds to a sum.
  5. The sum is seconds plus 1, so it goes up one at a time.
  6. On the dashboard we draw a label and name it Seconds:
  7. And we drag the variable seconds onto the label.

When you finish, the app takes you straight to the next tutorial in the path.

Build it in Nairda