Discuss Scratch
- jaboyc
-
100+ posts
Otherwise If
I think it would be cool to do something like this
That way, You won't have to do a whole bunch of elses. You could add hundreds of these and it could help a lot of people
if <> then
end
else if <> then ::cstart control
end ::cend
else if <> then ::cstart control
end ::cend
That way, You won't have to do a whole bunch of elses. You could add hundreds of these and it could help a lot of people
- HOWING
-
500+ posts
Otherwise If
Also:
EDIT: IF this was in 1.4 then There COULD be another block
:
if <> thenYou can keep on you post:
else if <> then :: celse // do do that use ":: celse"
else if <> then :: cstart control
end
EDIT: IF this was in 1.4 then There COULD be another block

forever if <>
else if <>:: celse
end
Last edited by HOWING (Sept. 13, 2014 03:18:04)
- Thepuzzlegame
-
1000+ posts
Otherwise If
Just do this:
if <> then
else
if <> then
else
if <> then
else
end
end
end
- HOWING
-
500+ posts
Otherwise If
ThepuzzlegameIsn't that what he said? VV
Just do this:if <> then
else
if <> then
else
if <> then
else
end
end
end
jaboyc
You won't have to do a whole bunch of elses.
- Thepuzzlegame
-
1000+ posts
Otherwise If
You're right, but I don't see what's so wrong with a string of elsesThepuzzlegameIsn't that what he said? VV
-snip-jaboyc
You won't have to do a whole bunch of elses.
- Zro716
-
1000+ posts
Otherwise If
Just do this:if <> then
else
if <> then
else
if <> then
else
end
end
end
- RPFluffy
-
1000+ posts
Otherwise If
I guess you could have it so you could right click an if/else c-block and be able to add an extra else?
So yeah I guess Kiwi
So yeah I guess Kiwi
- TimothyLawyer
-
1000+ posts
Otherwise If
Just do this:if <> then
else
if <> then
else
if <> then
else
end
end
end
- RPFluffy
-
1000+ posts
Otherwise If
Just do this:if <> then
else
if <> then
else
if <> then
else
end
end
end
(Snip)
That way, You won't have to do a whole bunch of elses. You could add hundreds of these and it could help a lot of people
- jaboyc
-
100+ posts
Otherwise If
I think it would maybe be good if the else if block was seperate from the if block so that new scratchers won't be so confused. Does anyone officially support?
- RPFluffy
-
1000+ posts
Otherwise If
I think it would maybe be good if the else if block was seperate from the if block so that new scratchers won't be so confused. Does anyone officially support?
I just like the fact of extending the if/else block, also that only makes it much more harder to understand why is there separate if/else blocks AND that usually how programming works.
- jaboyc
-
100+ posts
Otherwise If
Good point!I think it would maybe be good if the else if block was seperate from the if block so that new scratchers won't be so confused. Does anyone officially support?
I just like the fact of extending the if/else block, also that only makes it much more harder to understand why is there separate if/else blocks AND that usually how programming works.
if <> then
(+) else if <> ::celse
else
end
The Plus sign could be used to add more else ifs!
- TheHockeyist
-
1000+ posts
Otherwise If
Good point!I think it would maybe be good if the else if block was seperate from the if block so that new scratchers won't be so confused. Does anyone officially support?
I just like the fact of extending the if/else block, also that only makes it much more harder to understand why is there separate if/else blocks AND that usually how programming works.if <> then
(+) else if <> ::celse
else
end
The Plus sign could be used to add more else ifs!
This would be too confusing. No support. You get a bunch of ifs and elses and ifs and elses and the whole thing turns into a mess worse then earphones and shoelaces and string and spaghetti all tied together in a planetary-sized sphere.
- jaboyc
-
100+ posts
Otherwise If
It would be easier than to see a whole bunch if if and elses everywhere…Good point!I think it would maybe be good if the else if block was seperate from the if block so that new scratchers won't be so confused. Does anyone officially support?
I just like the fact of extending the if/else block, also that only makes it much more harder to understand why is there separate if/else blocks AND that usually how programming works.if <> then
(+) else if <> ::celse
else
end
The Plus sign could be used to add more else ifs!
This would be too confusing. No support. You get a bunch of ifs and elses and ifs and elses and the whole thing turns into a mess worse then earphones and shoelaces and string and spaghetti all tied together in a planetary-sized sphere.
- Greatguy123
-
500+ posts
Otherwise If
I have to say, I like the simplicity of nesting. I don't think it's confusing at all the way it is. Sorry; no support.
- HOWING
-
500+ posts
Otherwise If
Wait wait wait… Could this be the workaround?:
if <> then
else
if <> then
end
//Put no blocks here
end
= :: boolean
if <> then
else
if <> then
end
end
Last edited by HOWING (Sept. 13, 2014 03:22:58)
- stickfiregames
-
1000+ posts
Otherwise If
No support, having a stack of if/elses isn't too much of a problem.
- ScratchJahd2011
-
500+ posts
Otherwise If
No support, having a stack of if/elses isn't too much of a problem.
Are you sure?
What if you use several if/else statements in a single script?
Quite messy, it would seem.
Just 6-8 if/elses are so many to me.
I support.
- HOWING
-
500+ posts
Otherwise If
Can you show the link to the other one so we can see? Also, it looks like this is a duplicate.