[Solved] Problem Block < in if condition

Hi all
I spent many hours trying t

o solve a problem.
I want to find a minimum from 4 variables.
Quit simple, it is impossible to selct the correct one… In my example, the code choose always the third one (number 11) instead of the second one (number 2).
Arrgghh

Hi @franckled! :wave:

Try replacing the continuous if blocks with else if statements (inside the do loopmin function) -
image

Thanks! :blush:

Hello thanks…
I also tried with this option…

:frowning:

No result

Hi Franck! :wave:

If you could provide me a detailed version of what you want to achieve, It’ll be easy for me to understand your problem :slightly_smiling_face:

Also, can you please elaborate on why are you using a repeat block for finding minimum?

Thanks! :blush:

I have to test four input texts to find the minimum.
In my example, I directly put the figures in the text option of the block
I repeat because as it doesn’t work I would want to know if the problem was the same after two or three tests.
In fact, I just want to know when the user types numbers in the boxes which of the four input text is the minimum.
Thanks +++++ :-d:sleepy::sob:

Hi,

To find the minimum, add all the values to the list and use the ready-made block.

%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5

3 Likes

Oh yeah
I like this solution !!!
:grinning:
:ok_hand:

1 Like

%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5

2 Likes

I was also giving this solution, but could not coz I was not online due to some problems :smile:

Thanks! :blush:
P.S. So @franckled Is your problem solved? Should I mark this topic as Solved?

2 Likes

Yes
It works fine
THANKSSSSS !!

1 Like