I'm pretty confused about the list functions "maximum value in the list" and "minimum value in the list". The description (when you hover over the item) just says "returns maximum (minimum) number in the list". Straightforward enough. But there's also an argument "where item1 precedes item2 if". If I leave that blank, it works as I expect (although an error is flagged). But I have no idea what it wants to see there, and the documentation is no help.
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.
To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.
Taifun
Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.
Sure, but it's pretty straightforward. I've got a list of values. I'm trying to find the maximum value in a portion of that list:
If you use only numbers, i.e. your list contains only lists, you can leave the bottom slot empty. Then the code will use standard mathematical comparison and the result will be correct.
If your list also contains letters, then this block will return an error. In case of comparing letters, you need to use an alternative comparison block:
Using the bottom slot you can build a more advanced checking condition.
Duh, of course. Thanks all.
'maxinum value of the list' returns the last item of the list after sorting, and
'mininum value of the list' returns the first item of the list after sorting,
so we 'd better to rename them as 'first item after sorting list', and 'last item after sorting list'.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.