Pages: 1 2
Topic closed
I need this information for a wiki. :)
All of the blocks on scratch can be categorized. One of the most common ways is by color/category; Motion, Control, Looks, etc. But another way is by the shape of the block. There are reporter blocks, there are stack/command blocks, there are C blocks (forever, if, repeat etc.), and a lot more... but what is the if else block?
In the scratch reference guide, it considers the forever, if, repeat () blocks and more, all "C" blocks. But what about If Else? From what I know, it doesn't mention what that is categorized into.
At first, without even knowing about this issue, somebody added the category "Fork" block. I said on the talk page, "Are you sure that it's called a 'Fork' Block :P It sounds a little silly. If it's unnofficial, I don't really mind too much, but I think it would be cool if I asked people what it would be called :P" So that's what I'm doing now. But also recently, somebody mentioned, if the forever blocks and if blocks are "C", than shouldn't If else be another letter, like "E"? So that's another possible idea.
So what do you say? Fork, or E, or something else that the scratch team never told us about? Discuss :)
Offline
Its a fork, as it can go either way like a fork in the road, or a fork in chess where you can take either peice, though in scratch (& other languages) it's because it can take either command.
Offline
Cnor wrote:
Its a fork, as it can go either way like a fork in the road, or a fork in chess where you can take either peice, though in scratch (& other languages) it's because it can take either command.
The reason I'm calling it a "fork", is because usually a fork has 3 eh... what do you call em? Throngs or something? So a if else block has 3 pars sticking out from the center, so that's what I'm calling it that.
Offline
Lucario621 wrote:
Cnor wrote:
Its a fork, as it can go either way like a fork in the road, or a fork in chess where you can take either peice, though in scratch (& other languages) it's because it can take either command.
The reason I'm calling it a "fork", is because usually a fork has 3 eh... what do you call em? Throngs or something? So a if else block has 3 pars sticking out from the center, so that's what I'm calling it that.
You'd call them "prongs".
And I genuinely don't know what it's called technically. But I would call it an "E" block, normally. Although, following that train of thought, a forever block should be called an "O" block, because it has an arrow pointing back to the top. Which it isn't. So I think it should be a fork block, by my logic.
Offline
Wolfie1996 wrote:
Lucario621 wrote:
because usually a fork has 3 eh... what do you call em? Throngs or something?
You'd call them "prongs".
![]()
Oh yeah, now I remember...
Offline
The-Whiz wrote:
An "E" block - My forks have 4 prongs.
Lol.
I don't think my fork has 3 prongs either, but they usually do in the cartoons
Offline
Since others have pointed out that forks don't always have 3 prongs, I think it's an "E" block.
Offline
I just call it an "Else" block.
Offline
Lucario621 wrote:
Cnor wrote:
Its a fork, as it can go either way like a fork in the road, or a fork in chess where you can take either peice, though in scratch (& other languages) it's because it can take either command.
The reason I'm calling it a "fork", is because usually a fork has 3 eh... what do you call em? Throngs or something? So a if else block has 3 pars sticking out from the center, so that's what I'm calling it that.
There's another term used for the things that stick out of the end of a fork: "tines".
(That's incredibly important to know.)
Offline
Why don't you call it an E fork? Or a ForkE?
Accually, I like fork block better. It's like a fork in the road, you go down the program and if something is true you take one road and if it isn't you take the other. (Strange metaphore)
Fork... what a strange word.
Offline
E block makes more sense. Don't know why they chose "fork"...
Offline
Because it forks.
To fork is to split into two paths... like the else block.
(Uh-oh, this could become a full-sized argument... )
Offline
It's a fork block.
[blocks]
<if> Something can go either way
<( It <=> A fork )>
<else>
You're an idiot
<end>[/blocks]
Only joking at the idiot bit.
But it's a fork block people.
Last edited by Cnor (2010-02-23 15:36:19)
Offline
It is easier to consider this block when you consider the programmking constructs behind scratch blocks.
In text based languages, there are generally 3 different command types:
1) function. This returns a value, and takes multiple arguments. Examples in scratch are all of the numbers blocks (with pointed or round ends).
2) Procedure (or command). This simply does something.
3) statement. This separates sections of code, and controls what to do with them. conditionals and loops fit into these.
The bars are statements, in that they control how sections of code are executed. The if..else block simply takes two blocks of code.
In this sense, they are 'double bars.'
When scratch gets switch case or if..ifelse..else syntax, they will just become 'multi bars.'
So given this, no, they are not E's or forks.
Offline
Larry828 wrote:
Lucario621 wrote:
Cnor wrote:
Its a fork, as it can go either way like a fork in the road, or a fork in chess where you can take either peice, though in scratch (& other languages) it's because it can take either command.
The reason I'm calling it a "fork", is because usually a fork has 3 eh... what do you call em? Throngs or something? So a if else block has 3 pars sticking out from the center, so that's what I'm calling it that.
There's another term used for the things that stick out of the end of a fork: "tines".
(That's incredibly important to know.)![]()
You are correct. I had something related to that happen earlier.
I believe it was:
My dad was joking around about sporks along time ago, and called it a foon.
Then on Wikipedia they referredd to both. And then I forgot the name of tines.
So yeah . . . it's a fork block to me also.
Offline
I consider it a 42 block.
Meh, I say E
Offline
It's probably a combo block, combining two "ifs"
Offline
E
<if>
<else>
<end>
Offline
Topic closed
Pages: 1 2