support
Offline
i think this is exactly like the switch in java:
String month=7; String monthString = null; switch (month) { case 1: monthString = "January"; break; case 2: monthString = "February"; break; case 3: monthString = "March"; break; case 4: monthString = "April"; break; case 5: monthString = "May"; break; case 6: monthString = "June"; break; case 7: monthString = "July"; break; case 8: monthString = "August"; break; case 9: monthString = "September"; break; case 10: monthString = "October"; break; case 11: monthString = "November"; break; case 12: monthString = "December"; break; default: monthString = "Invalid month"; break; } Systeem.out.println"the month is " + monthString + "!";
and the way to remember x and y is x = a cross
Last edited by TRocket (2011-04-22 11:41:54)
Offline
TRocket wrote:
i think this is exactly like the switch in java:
Code:
switch (month) { case 1: monthString = "January"; break; case 2: monthString = "February"; break; case 3: monthString = "March"; break; case 4: monthString = "April"; break; case 5: monthString = "May"; break; case 6: monthString = "June"; break; case 7: monthString = "July"; break; case 8: monthString = "August"; break; case 9: monthString = "September"; break; case 10: monthString = "October"; break; case 11: monthString = "November"; break; case 12: monthString = "December"; break; default: monthString = "Invalid month"; break; }and the way to remember x and y is x = a cross
Yeah, I think so.
@end: What?
Offline
tvflame wrote:
Rexpup wrote:
TVflea wrote:
almost everyone knows X and Y unless you are in 3rd gradeAlthough I think that Scratchers should learn about X and Y, I don't think you should call people 3rd graders.
TheSaint wrote:
While this is slightly useful, it won't be a priority because it can be done using the nesting feature. But I agree, it would be nice to have.
So, do you support?
i do!
yay!
Offline
ssss wrote:
I kinda support.
But not as priority
That's fine.
GarSkutherGirl wrote:
SUPPORT. This would be useful in those 1-sprite-1-script games.
OT: I'm going to the mall today. :3
Yeah,That's why I want it.
scimonster wrote:
I like it.
Why do you write in colors like that?
Thanks. Cuz I can and it's free. Well, actually, I just want to stand out on the forums. Also, I like coding things with script.
ProgrammingFreak wrote:
I was going to code this block!
![]()
With boyb?
williambl wrote:
Great! Even though I LIKE nesting [blocks] <if> <else> <end> <if> <else> <end> <if> <else> <end> [/blocks]
Ok.
Offline
scimonster wrote:
TRocket wrote:
i think this is exactly like the switch in java:
Code:
switch (month) { case 1: monthString = "January"; break; case 2: monthString = "February"; break; case 3: monthString = "March"; break; case 4: monthString = "April"; break; case 5: monthString = "May"; break; case 6: monthString = "June"; break; case 7: monthString = "July"; break; case 8: monthString = "August"; break; case 9: monthString = "September"; break; case 10: monthString = "October"; break; case 11: monthString = "November"; break; case 12: monthString = "December"; break; default: monthString = "Invalid month"; break; }and the way to remember x and y is x = a cross
Yeah, I think so.
@end: What?
Sorry, but I don't program Java.
Offline
TRocket wrote:
i think this is exactly like the switch in java:
Code:
String month=7; String monthString = null; switch (month) { case 1: monthString = "January"; break; case 2: monthString = "February"; break; case 3: monthString = "March"; break; case 4: monthString = "April"; break; case 5: monthString = "May"; break; case 6: monthString = "June"; break; case 7: monthString = "July"; break; case 8: monthString = "August"; break; case 9: monthString = "September"; break; case 10: monthString = "October"; break; case 11: monthString = "November"; break; case 12: monthString = "December"; break; default: monthString = "Invalid month"; break; } Systeem.out.println"the month is " + monthString + "!";and the way to remember x and y is x = a cross
I agree, Scratch needs a switch.
Offline
markyparky56 wrote:
I agree, Scratch needs a switch.
I can program "some" in Flash, but can do fairly good graphics. I'd like there to be a .fla file for Scratch, so that everyone can add. Hey, I'll write a new topic about it.
Offline
Rexpup wrote:
Hamsterman486 wrote:
support
Support? YAY!!!
YAY
Offline
Sorry to restate this but yes the <[]and/or[]> boolean would do the same job.
Offline
jji7skyline wrote:
Sorry to restate this but yes the <[]and/or[]> boolean would do the same job.
Did you read it?
Offline
This is a great block, it is not able to be done in scratch currently because even with a bunch of ifs and an if else, it will not work the same, for instance, if a variable changes in one of them, which would make another script run, it wont act the same. Also if they did end up making this, the plus and minus buttons may be able to go on other blocks like or and = - + * / etc.
Offline
TRocket wrote:
and the way to remember x and y is x = a cross
LOL, I never thought about x i a cross. (or across)
Offline
scimonster wrote:
jji7skyline wrote:
Sorry to restate this but yes the <[]and/or[]> boolean would do the same job.
Did you read it?
I don't really think so. I'd like to see this block, because of a very annoying game that I am making.
Offline
I actually don't support, because
a) It'll be a pain to add for the ST
b) It can be replicated easily
Offline
Hardmath123 wrote:
I actually don't support, because
a) It'll be a pain to add for the ST
b) It can be replicated easily
DON'T YOU SEE! YOU CANT REPLACE IT! ITS AS REPLACEABLE AS THE IF ELSE BOOLEAN! (Actually harder to replace.)
Offline
Pecola1 wrote:
Hardmath123 wrote:
I actually don't support, because
a) It'll be a pain to add for the ST
b) It can be replicated easilyDON'T YOU SEE! YOU CANT REPLACE IT! ITS AS REPLACEABLE AS THE IF ELSE BOOLEAN! (Actually harder to replace.)
Both of hardmath123's points contridict each other.
Offline
Rexpup wrote:
Pecola1 wrote:
Hardmath123 wrote:
I actually don't support, because
a) It'll be a pain to add for the ST
b) It can be replicated easilyDON'T YOU SEE! YOU CANT REPLACE IT! ITS AS REPLACEABLE AS THE IF ELSE BOOLEAN! (Actually harder to replace.)
Both of hardmath123's points contridict each other.
Not really. The type of block you're looking for would require some new coding to match the block "extension" properties of those in BYOB - possible, but somewhat more difficult than just making a new blockspec. Still, I think this would be worth the time.
Offline
Harakou wrote:
Rexpup wrote:
Pecola1 wrote:
DON'T YOU SEE! YOU CANT REPLACE IT! ITS AS REPLACEABLE AS THE IF ELSE BOOLEAN! (Actually harder to replace.)Both of hardmath123's points contridict each other.
Not really. The type of block you're looking for would require some new coding to match the block "extension" properties of those in BYOB - possible, but somewhat more difficult than just making a new blockspec. Still, I think this would be worth the time.
me too
Offline
Pecola1 wrote:
Harakou wrote:
Rexpup wrote:
Both of hardmath123's points contridict each other.Not really. The type of block you're looking for would require some new coding to match the block "extension" properties of those in BYOB - possible, but somewhat more difficult than just making a new blockspec. Still, I think this would be worth the time.
me too
It's for Scratch 2.0, not for BYOB.
Offline