Discuss Scratch

jaboyc
Scratcher
100+ posts

Otherwise If

I think it would be cool to do something like this
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
Scratcher
500+ posts

Otherwise If

Also:
if <> then    

else if <> then :: celse // do do that use ":: celse"
You can keep on you post:
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
Scratcher
1000+ posts

Otherwise If

Just do this:
if <> then

else
if <> then

else
if <> then

else

end
end
end
HOWING
Scratcher
500+ posts

Otherwise If

Thepuzzlegame
Just do this:
if <> then

else
if <> then

else
if <> then

else

end
end
end
Isn't that what he said? VV
jaboyc
You won't have to do a whole bunch of elses.
Thepuzzlegame
Scratcher
1000+ posts

Otherwise If

HOWING wrote:

Thepuzzlegame
-snip-
Isn't that what he said? VV
jaboyc
You won't have to do a whole bunch of elses.
You're right, but I don't see what's so wrong with a string of elses
Zro716
Scratcher
1000+ posts

Otherwise If

Thepuzzlegame wrote:

Just do this:
if <> then

else
if <> then

else
if <> then

else

end
end
end
RPFluffy
Scratcher
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
TimothyLawyer
Scratcher
1000+ posts

Otherwise If

Thepuzzlegame wrote:

Just do this:
if <> then

else
if <> then

else
if <> then

else

end
end
end
RPFluffy
Scratcher
1000+ posts

Otherwise If

TimothyLawyer wrote:

Thepuzzlegame wrote:

Just do this:
if <> then

else
if <> then

else
if <> then

else

end
end
end

jaboyc wrote:

(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
Scratcher
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
Scratcher
1000+ posts

Otherwise If

jaboyc wrote:

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
Scratcher
100+ posts

Otherwise If

RPFluffy wrote:

jaboyc wrote:

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.
Good point!
if <> then

(+) else if <> ::celse

else

end

The Plus sign could be used to add more else ifs!
TheHockeyist
Scratcher
1000+ posts

Otherwise If

jaboyc wrote:

RPFluffy wrote:

jaboyc wrote:

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.
Good point!
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
Scratcher
100+ posts

Otherwise If

TheHockeyist wrote:

jaboyc wrote:

RPFluffy wrote:

jaboyc wrote:

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.
Good point!
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.
It would be easier than to see a whole bunch if if and elses everywhere…
Greatguy123
Scratcher
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
Scratcher
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
Scratcher
1000+ posts

Otherwise If

No support, having a stack of if/elses isn't too much of a problem.
ScratchJahd2011
Scratcher
500+ posts

Otherwise If

stickfiregames wrote:

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.
ScratchJahd2011
Scratcher
500+ posts

Otherwise If

Also, it looks like this is a duplicate.
HOWING
Scratcher
500+ posts

Otherwise If

ScratchJahd2011 wrote:

Also, it looks like this is a duplicate.
Can you show the link to the other one so we can see?

Powered by DjangoBB