Get the largest value of 3 numbers

Every time I save a number they are saved in FB and then I get
This is how the texts are updated

what I keep becomes the first

the first goes to the second

the second goes to
third

the third disappears

In the GET button you should select the largest of the texts

what happens in my blocks is that I get the absolute highest value recorded
and it does not take the list that is updated

As you can see, it starts with a value of 20 as the highest

When I save 50 it becomes the new largest and when 50 disappears the new largest should be 20

and that 50 is not updated until one greater than the one appears
I mean 51

I already tried adding another variable to get the largest of this updated list and I can't solve it

any suggestions?

Untitled

When the biggest is 50, then "mayor"=50 and then when the next biggest is 20, it is not bigger than "mayor" (50). Try resetting "mayor" each time you click BT_OBTIENE.

I was missing a zero, you were right, thank you
Ramon

blocks

ask
Why do i get this message

after selecting in a dropdown getting the values

I convert these values ​​obtained A;B;C;D;E into a list to obtain the largest blue number
20240508191700

I get the highest value but I get the message

Does it have to do with the list?
because I already tried a timer
5 seconds and the message follows

image

bloks

Check the values of your textboxes, and List _FB

Math blocks hate garbage input.

Here's a more discerning technique.

1 Like

or

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.