Min
and
max
compare the successive values of an iteration, and return the lowest or the highest one.
![]() | Min and max have one default input and three outputs :
|
Listloop enumerates the numbers of a list and returns them successively to min or max.
Each time, the new number is compared to the current value.
If it is higher – max – or lower – min – than the current value, it is stored instead of this current value.
The current value is printed.
The second output of min and max returns the resulting lowest or greatest value of all the list to Finally.