I am trying to make an app that adds input # up to 100 (need help)

Where do you ask for the other number that you want to add to the first number?

Or is this one of those problems where you have to add up 1,2,3,4,5....x ?

I want to have a number input, add all the way to 100, it must not surpass that number by much since a

user can input for example 30 and the max it can get is 90....So it must be any number between 1 and 100

So, for example, he enters 5, and the code is supposed to add 5+5+5+5+5...until it reaches a value of 100 or less.

yes, for the life of me I have restarted about 5 times and then the Companion keeps freezing up

not the best of times right now.

You can't display anything in the label or use anything from the UI inside the loop. You can do a workaround like this, or use a clock component.

Dragable block:

or

1 Like

thank you for the help. I think I can modified it to reach a hundred on any input number.

thanks!!