Read a number typed into the terminal and do math with it using the To number block.

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 text variable called typed.
  3. We create a number variable called result.
  4. Inside the loop we save whatever is typed into typed.
  5. Behind it we set result to a sum.
  6. To number turns the text into a number that can be added.
  7. We give the variable typed to the To number block.
  8. On the dashboard we draw a terminal and give it the variable typed.
  9. We add a label and give it the variable result.

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

Build it in Nairda