Length of a text

Count how many letters a text has with the Length 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 We add a While loop, which repeats forever. We create a text variable called text with the value Hello. We create a number variable called length. Inside the loop we set length to the Length block. We drag the variable text into the slot of Length. On the dashboard we draw a label. And we drag the variable length onto the label. When you finish, the app takes you straight to the next tutorial in the path. ...

August 12, 2026 · 1 min · 124 words · Nairda

The right password

Compare two texts with the Compare block and use Not to know when the password fails. 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 We add a While loop, which repeats forever. We create a text variable called password. We create a number variable called wrong. Inside the loop we save whatever is typed into password, using Wait. Behind it we set wrong and give it the Not block. Inside the Not we put Compare, which is 1 when the texts match. We compare the variable password against the password sun. On the dashboard we draw a terminal and give it the variable password. We add a label with wrong, which is 1 when the password is not sun. When you finish, the app takes you straight to the next tutorial in the path. ...

August 12, 2026 · 1 min · 162 words · Nairda

A seconds counter

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 We add a While loop, which repeats forever. We create a number variable called seconds. Inside the loop we wait 1000 milliseconds, which is one second. Behind it we set seconds to a sum. The sum is seconds plus 1, so it goes up one at a time. On the dashboard we draw a label and name it Seconds: And we drag the variable seconds onto the label. When you finish, the app takes you straight to the next tutorial in the path. ...

August 12, 2026 · 1 min · 133 words · Nairda

Is it in range?

Join two comparisons with the logical And to know whether a number is between 10 and 20. 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 We add a While loop, which repeats forever. We create a number variable called number. We create another number variable called inside. Inside the loop we set inside to an And block. In the first slot of the And we put a greater-than comparison. That comparison says number is greater than 10. In the second slot of the And we put a less-than comparison. That other one says number is less than 20. On the dashboard we put a slider and give it the variable number. We add a label with inside, which is 1 only when it is in range. When you finish, the app takes you straight to the next tutorial in the path. ...

August 12, 2026 · 1 min · 169 words · Nairda

Count to 10 seconds

Use a Repeat loop that runs a fixed number of times instead of forever. 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 We add a While loop, which repeats forever. We create a number variable called seconds. Inside the loop we set seconds back to 0. Behind it we add a Repeat loop of 10 turns. Inside the Repeat we wait one second. Behind the delay we set seconds to a sum. The sum is seconds plus 1, so it counts up to 10. On the dashboard we draw a label and name it Seconds: And we drag the variable seconds onto the label. When you finish, the app takes you straight to the next tutorial in the path. ...

August 12, 2026 · 1 min · 147 words · Nairda

Dice simulator

Roll two dice with random numbers and print them in the terminal. 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 We add a While loop, which repeats forever. We create a text variable called terminal. We create two number variables, die1 and die2. Above the loop we clear the terminal with an empty Set. Behind it we join the title Dice simulator. Behind it we set die1 to a random number. That random goes from 1 to 6, like a die. And behind that we set die2 to another random. This one also goes from 1 to 6. Behind it we join the label die 1: And behind it the value of die1. Behind it we join the label die 2: And the value of die2 behind it. On the dashboard we draw a terminal and give it the variable terminal. When you finish, the app takes you straight to the next tutorial in the path. ...

August 12, 2026 · 1 min · 184 words · Nairda

A basic condition

Check whether a random number is even or odd using the remainder. 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 We add a While loop, which repeats forever. We create a number variable called number and a text one called text. Above the loop we set number to a random value from 0 to 10. Behind it we add an If with a comparison in its condition. Inside the comparison we put an operation and choose the remainder. It takes the remainder of number divided by 2. If the remainder is 0 the number is even, so we write Is even. We add a second If with its own comparison. This one also gets an operation set to the remainder. And it also divides number by 2. If it is not 0 the number is odd, so we write Is odd. On the dashboard we draw a label and name it Result: And we drag the variable text onto the label. When you finish, the app takes you straight to the next tutorial in the path. ...

August 12, 2026 · 1 min · 204 words · Nairda

A loop that ends

Give the While loop a condition so it stops instead of repeating forever. 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 We create a number variable called n. We add a While loop. We put a comparison in its condition and choose less than. The comparison says n is less than 3, so the loop ends. Inside the loop we add a Set for the variable n. We give it a sum that adds 1. The sum takes the current value of n, so it grows each turn. Behind it we wait one second, to watch it count. On the dashboard we draw a label. And we drag the variable n onto the label. When you finish, the app takes you straight to the next tutorial in the path. ...

August 12, 2026 · 1 min · 157 words · Nairda

A basic function

Create a function with its own canvas and call it from the main program. 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 We create a text variable called terminal. We create a function called greet, which gets its own canvas. Inside the greet canvas we write hello world into terminal. Back in the main canvas we add the greet block, which calls the function. Behind it we add a While loop, which repeats forever. On the dashboard we draw a terminal and give it the variable terminal. When you finish, the app takes you straight to the next tutorial in the path. ...

August 12, 2026 · 1 min · 130 words · Nairda