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

#1 2012-11-09 18:14:30

fillergames
Scratcher
Registered: 2012-10-15
Posts: 1000+

Set variable to amount in list block.

You should be able to set the variable number to the amout of objects in a list.


http://i50.tinypic.com/2ufvxc5_th.gif Grammer? Whats grammar?

Offline

 

#2 2012-11-09 18:16:09

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Set variable to amount in list block.

You can.

set [variable v] to (length of [list v])


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#3 2012-11-09 18:17:39

fillergames
Scratcher
Registered: 2012-10-15
Posts: 1000+

Re: Set variable to amount in list block.

Firedrake969 wrote:

You can.

set [variable v] to (length of [list v])

How did i not know that. Any mods here to close topic?


http://i50.tinypic.com/2ufvxc5_th.gif Grammer? Whats grammar?

Offline

 

#4 2012-11-09 19:06:38

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: Set variable to amount in list block.

fillergames wrote:

Firedrake969 wrote:

You can.

set [variable v] to (length of [list v])

How did i not know that. Any mods here to close topic?

Just report the post, it notifies a mod about it, include that you want it closed


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#5 2012-11-09 19:53:50

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Set variable to amount in list block.

Closed by request of the topic owner.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer