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

#1 2010-10-04 13:47:32

kossboss
New Scratcher
Registered: 2010-10-04
Posts: 1

Maximum and Min # of a list HELP

I need to be able to locate and then say the max and min number of a list in scratch. I need some help doing this plz.

Offline

 

#2 2010-10-20 17:25:19

aweman
Scratcher
Registered: 2008-06-22
Posts: 100+

Re: Maximum and Min # of a list HELP

What exactly do you mean by this? If you want to know the minimum and maximum items on a list, the minimum is 0 and the max is... I don't know.

Offline

 

#3 2010-10-20 17:31:16

aweman
Scratcher
Registered: 2008-06-22
Posts: 100+

Re: Maximum and Min # of a list HELP

I had a team of 23 sprites forever adding "thing" to list, and around 1500 items, the program lagged, but kept on going. The lag was very bad around 1750 items, so I stopped it. Hope this helps!

Offline

 

#4 2010-10-20 17:47:36

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: Maximum and Min # of a list HELP

Do you mean something like this?

I just created a quick list checker which finds the highest and lowest number in a list of randomly generated numbers. Feel free to add to it or use it if it's what you mean.  smile

Also, this sort of topic probably belongs in All About Scratch more. I'll see if a moderator can move it now.

Last edited by 06dknibbs (2010-10-20 17:57:24)


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#5 2010-10-20 18:47:47

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Maximum and Min # of a list HELP

06dknibbs wrote:

Also, this sort of topic probably belongs in All About Scratch more. I'll see if a moderator can move it now.

Moved. ^^


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#6 2010-10-20 20:39:38

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Maximum and Min # of a list HELP

I'm a bit confused - do you want the number of items in a list? If so, just use the (length of [list]) block.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#7 2010-10-22 09:16:34

colorfusion
Scratcher
Registered: 2009-10-03
Posts: 500+

Re: Maximum and Min # of a list HELP

I think he means if he has a lot of numbers in a list, how to find which is the numbers is the highest or lowest.


http://i1083.photobucket.com/albums/j389/colorfusion/Lowestandhighest.gif?t=1287753834

Last edited by colorfusion (2010-10-22 09:24:09)

Offline

 

Board footer