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

#1 2011-01-28 16:31:49

1963
Scratcher
Registered: 2010-11-06
Posts: 8

Delete <> of list

I think there should be a block where you can delete a certian item on the list:

Delete {Certian item} from list

Instead of:

Delete {1} of list

Offline

 

#2 2011-01-28 16:35:31

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: Delete <> of list

It should be both, not instead of.

But it is possible...

set [counter] to 1
repeat <length of list> times
if <item [counter] of list>=thingtobedeleted
delete {counter} of list
else
change [counter] by 1

Offline

 

Board footer