Discuss Scratch

AndMags
Scratcher
3 posts

Join block

I would like to know what the join block does.
cs156175
Scratcher
1000+ posts

Join block

AndMags wrote:

I would like to know what the join block does.
It allows you to join two variables. Like, it allows you to include a person's username in speech.
say (join (username) [ , that's a nice name!]) for (2) secs
Would produce the sprite saying the username and then “That's a nice name”.
AndMags
Scratcher
3 posts

Join block

Thank you cs156175
GlassGalaxy
Scratcher
500+ posts

Join block

It joins together whatever you input.

For example…

set [date v] to (join (join (join (join (current [date v]) [/]) (current [month v])) [/]) (current [year v]))

would make the variable “date” to be the current date.
amylaser
Scratcher
500+ posts

Join block

In simple terms, it glues two values together.

For example, joining “12” and “13” would give you “1213”. And joining “apple” and “banana” would give you “applebanana”.
You can even join different types of values… For example, joining “12” and “apple” would give you “12apple”.

Read more about it here: https://wiki.scratch.mit.edu/wiki/Join_()()_(block)
AndMags
Scratcher
3 posts

Join block

Thank you I think I'm going to close this topic.
Hacker_4
Scratcher
1 post

Join block

what is this?

Last edited by Hacker_4 (June 1, 2019 03:33:57)

Parametric
Scratcher
91 posts

Join block

Hacker_4 wrote:

what is this?

If I had to guess, I'd say it's a three-year-old topic.
ResExsention
New Scratcher
1000+ posts

Join block

Hacker_4 wrote:

what is this?

Hacker, why?

Please don't bump resolved topics. It kinda doesn't help. This topic is three years old and you sent it to the top for no reason.

Thanks!

P.S. "this" is a question relating to the
(join [] [world])

block.
Za-Chary
Scratcher
1000+ posts

Join block

Closed as resolved.

Powered by DjangoBB