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

#1 2010-01-02 13:57:45

sillygoose8
Scratcher
Registered: 2010-01-02
Posts: 1

lists and commas

Hello peoples,

I am trying to display the results of an entire list with one say.  I am looking for a way to display commas between each item with an "and" at the end.  So the entire inventory is not only displayed but can be plugged into a sentence.

thanks!

Offline

 

#2 2010-01-02 14:20:59

iamrpk
Scratcher
Registered: 2009-04-06
Posts: 1000+

Re: lists and commas

Do this:

[say: (join *item _ of list* and *(join *item _ of list* and *(join *item _ of list* and ...)


http://www.punbb-hosting.com/forums/AwesomeBooks911Forum/index.php

Offline

 

Board footer