Shorten and Finding Elements

Hi, I’ve been tweaking this project (which is to find the average of scores by an input of the user) for a while and I haven’t gotten a solution to shorten the blocks that count the average (global rata2).

And, I want to check for every text box which score is the lowest. But, I haven’[t gotten a solution from the list. Can the textbox be put in the list and be checked for only the text in the textbox? Thank you!

If you want to create a procedure that calculates average and minimum of several elements:

  • create a list of these elements ( text boxes in this case )
  • iterate over the list
  • use the any component blocks to access each element

See attached example

ave01.aia (3.2 KB)

P.S.

The colouring schema need some revision

1 Like

There are list blocks for this

i have used four text boxes.

But remember it will take all the text box values, if you do not use any other text boxes for anyother input then you may use this. to avoid further error you may set the input type as number only

but there will be alternating solution to achieve this, there are multiple ways to achieve this

2 Likes

Here is the advanced list blocks version of this:

ave01 (1).aia (3.0 KB)

Blocks are draggable.

Notice that all variables are local except for the textbox list.

1 Like

Thank you for all the answers!

I realized that some used this block below. I am wondering what are the argument blocks for this block’s “of component” because I usually can’t find anything I want if I want to use these kinds of blocks

Screenshot 2026-05-13 180934

That is amazing , you are crazy

The component block is usually at the bottom of the Blocks Pallette for that component.

In the attached screen shot in the Blocks Editor, the Textbox1 component block is at the lower right corner.