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
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.
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
ok i am trying it now
Less work smart work Thank You
This will be of great help
Maybe not , maybe yes… making a small algorithm helps to grow.
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
But I think in this case a small loop might be better
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.