Discuss Scratch

ryamcs31
Scratcher
39 posts

how do I use the "join" block?

how do I use that block?

@elrain is a cool scratcher
SpyCoderX
Scratcher
100+ posts

how do I use the "join" block?

The “join” block joins 2 things together. Examples:
(join [Hello ] [world]) //Returns “Hello world”
(join [ab] [cd]) //Returns “abcd”

New game! (link)
Have a good day/night!


\(-_-) ::#00AAAA //This is crypto. He protects my signature from the evil kumquats!
Programming is a very powerful skill. As are critical thinking and hard work.
- SpyCoderX


boxerry
Scratcher
15 posts

how do I use the "join" block?

You use it to join 2+ items together. For example,
(join [apple] [banana])
Would be equal to
applebanana

Me: That's totally right.
Scratch in 4 years:
when green flag clicked
delete [ all]
Vaibhs11
Scratcher
1000+ posts

how do I use the "join" block?

You can also stack it to join more than two things:

(join [a] (join [b] [c])) // returns: "abc"

You can use it to output variables in a sentence:

say (join [you have ] (join (lives) [lives left.]))
Blue_Moon2607
Scratcher
46 posts

how do I use the "join" block?

The “join” block listed in the “Operators” is the text joined together with 2 text values. Here are the examples…
(join [Hello] [ World!]) // Returns "Hello World!"
(join [Coins: ] (Coins)) // If the "Coins" variable is 73, then it returns "Coins: 73"
To be able to join multiple texts with this block, you can stack like this…
(join [Hi! ] (join [I'm] [ Blue_Moon2607!])
// Returns "Hi! I'm Blue_Moon2607!"
You must include spaces, otherwise it goes like this…
(join [Hello] [World!]) // Returns "HelloWorld!"

Last edited by Blue_Moon2607 (March 30, 2024 09:21:54)


I am just a Scratcher who is a Roblox bacon, feel free to go to my profile!
I have a studio called Blue Moon's Bacon Studio and it has a creative curated project including mine, please follow my studio! I also have a Roblox group called “Blue Moon Bacon Hangout”, join today!

Powered by DjangoBB