How to compare which one is smaller in 6 list of number?

I want to compare the list of number which one is the smallest number

Eg:
I have 13 , 4 , 7 , 20 , 60 , 44,
and show the smallest number in lable

Create a variable and call it M. In the first iteration M receives the first value, always. Then, compare M with all rest the items on your list to find out if they are smaller than the variable M.

Screenshot_7

The first time in the loop…
Or initialize/start with 0 zero.

which block i should use , if u can show me in block then we can understand better .

initialize a variable with 0 - use the orange variable Block

create a list - use the blue list Block

loop this list use the yellow block, For Each iten in list Block

compare the variable M with the list item, check if the item is less than M
If Block so, M receives the item value, yellow control If block and green Logic block

4 Likes

ok i am trying it nowScreenshot_8

Less work smart work Thank You

2 Likes

This will be of great help

3 Likes

Maybe not , maybe yes… making a small algorithm helps to grow. :thumbsup:

4 Likes

working good

[quote="[FREE / Open Source] Max/Min Value of List - My First Extension Extensions, post:1, topic:81264"]
MaxMinTools This extension
[/quote]

Thanks for promoting my extension :sweat_smile:
But I think in this case a small loop might be better :smiley:

2 Likes

3 Likes

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