This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-05-13 20:29:39

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Identifying Greatest and Least Values in a List

I'm not very good at using lists, so I have a quick question. What script will identify the greatest and least number values in a list?


http://i42.tinypic.com/2rot8c2.png

Offline

 

#2 2010-05-13 20:32:42

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Identifying Greatest and Least Values in a List

Maybe this project by Locomule can help you. It sorts a list in values from greatest to least: http://scratch.mit.edu/projects/Locomule/798510

Hope that helps!  smile

Last edited by coolstuff (2010-05-13 20:33:06)

Offline

 

#3 2010-05-13 20:42:31

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: Identifying Greatest and Least Values in a List

You can use this script:

http://img297.imageshack.us/img297/8536/leastandgreatest.gif


http://i48.tinypic.com/2z5pqad.png

Offline

 

#4 2010-05-13 20:47:27

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: Identifying Greatest and Least Values in a List

Thanks for the examples coolstuff, and scmb1! I have thought of a different, simpler way without using lists, to work with my project I am finishing up. If my different idea does not work, I will come back and try these examples! Thanks for your time and work, even though I may not need this right now, I might need it for later reference! Thanks  wink

Last edited by coka (2010-05-13 20:47:54)


http://i42.tinypic.com/2rot8c2.png

Offline

 

#5 2010-05-13 20:49:27

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: Identifying Greatest and Least Values in a List

coka wrote:

Thanks for the examples coolstuff, and scmb1! I have thought of a different, simpler way without using lists, to work with my project I am finishing up. If my different idea does not work, I will come back and try these examples! Thanks for your time and work, even though I may not need this right now, I might need it for later reference! Thanks  wink

No problem. I'm interested in seeing your method.


http://i48.tinypic.com/2z5pqad.png

Offline

 

#6 2010-05-13 20:53:14

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: Identifying Greatest and Least Values in a List

Sure, I'm looking to post this project within the next hour, so be on the lookout!  cool  I'll post a link!  wink 

Edit: Oh and it has to do with math, your fav subject!
Edit #2: Here's the link for anyone who wants it... http://scratch.mit.edu/projects/coka/1049467

Last edited by coka (2010-05-13 21:32:10)


http://i42.tinypic.com/2rot8c2.png

Offline

 

Board footer