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

#1 2009-01-08 14:28:39

xaby
Scratcher
Registered: 2008-02-13
Posts: 49

how am I able to join to lists with text?

In one list is text. In the other is also text. And both have to be in a third list.

other example: in one list are words: Montag, Dienstag, Mittwoch, Donnerstag ...
And my speach bubble says "today is ..." ("today is Montag") or ("today is Dienstag")

I need a sqaure [ ] with two squares [ | ]

Like ( () + () ) the plus with numbers. But it doesn't work with letters :-(

Offline

 

#2 2009-01-08 14:37:50

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: how am I able to join to lists with text?

You could make another list.

Like:

add [Today is ] to [text]
add [tuesday] to [text]
say (text)


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#3 2009-01-08 14:56:19

xaby
Scratcher
Registered: 2008-02-13
Posts: 49

Re: how am I able to join to lists with text?

like:

add [Today is ] to [text]
add [tuesday] to [text]
say (text)

jepp

It works with lists, but only with a space between the items.

Last edited by xaby (2009-01-08 15:08:13)

Offline

 

#4 2009-01-10 14:33:31

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: how am I able to join to lists with text?

Code:

clear[3rdList]
i=0
repeat(length of [1stList]){
i=i+1
add (item (i) of [1stList]) to [3rdList]
}
i=0
repeat(length of [2ndList]){
i=i+1
add (item (i) of [2ndList]) to [3rdList]
}
say[3rdList]

Last edited by fullmoon (2009-01-10 14:34:08)


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

Board footer