Discuss Scratch
- k9lego
-
Scratcher
1000+ posts
Else If
Ah, support!Yeah, I'd do something like thisThat would probably be good. I made a mockup with a similar idea:
if
else if <> v x
else if <> v x
v to create another else/if, and x to remove that one.
- ev3commander
-
Scratcher
500+ posts
Else If
v and x are buttons to add and delete.Mockup, just for fun:if <> thenEDIT: I think this would probably be a right-click menu option – “add condition” – if it were implemented.
else if <> then :: celse
else if <> then :: celse
endif <> then
else if <> then v x :: celse
else if <> then v x :: celse
end
- ev3commander
-
Scratcher
500+ posts
Else If
orMockup, just for fun:if <> thenEDIT: I think this would probably be a right-click menu option – “add condition” – if it were implemented.
else if <> then :: celse
else if <> then :: celse
endif <> then
else if <> then v x :: celse
else if <> then v x :: celse
end
if <> then
else if <> then ◀ ▶ :: celse
else if <> then ◀ ▶ :: celse
end
- turkey3
-
Scratcher
1000+ posts
Else If
Support! The workaround makes scripts extremely fat width-wise.
- blob8108
-
Scratcher
1000+ posts
Else If
There would only be arrows on the last one. Or maybe *after* the last one, ie. on the “end” stub.if <> then
else if <> then ◀ ▶ :: celse
else if <> then ◀ ▶ :: celse
end
- A-no-meep
-
Scratcher
100+ posts
Else If
That would be much more visible & clear.How about instead of arrows, there is a + and a -?
- davidkt
-
Scratcher
1000+ posts
Else If
My ideal mockup:
if <condition ::grey>
do something ::grey
else if <condition ::grey>::control celse
do something else ::grey
else if <condition ::grey> + - ::control celse
do something else ::grey
else
do something else ::grey
end
- Maltese_Falcon
-
Scratcher
100+ posts
Else If
Wasn't there an “else if” block in 1.4? (My mind is forgetful…)
Anyway, I support.
Anyway, I support.
- bozman
-
Scratcher
73 posts
Else If
Wasn't there an “else if” block in 1.4? (My mind is forgetful…)
Anyway, I support.
I don't think there was…
- turkey3
-
Scratcher
1000+ posts
Else If
Wasn't there an “else if” block in 1.4? (My mind is forgetful…)No
Anyway, I support.
- VoltageGames
-
Scratcher
1000+ posts
Else If
Like the stuff in javascript? It would be obsolete. Just do
if <> then
else
if <> then
end
end
- bozman
-
Scratcher
73 posts
Else If
Like the stuff in javascript? It would be obsolete. Just doif <> then
else
if <> then
end
end
The whole point of the block is making it so it doesn't need the huge stacking of ifs and elses and what not. the point is to make it more cleaned up and organized. Also, its not only used in JavaScript, its also used in Python.
- dracae
-
Scratcher
1000+ posts
Else If
No support.
Find me a situation in which this block is used, and I'll find you a very simple solution that doesn't require YET ANOTHER extraneous block.
Find me a situation in which this block is used, and I'll find you a very simple solution that doesn't require YET ANOTHER extraneous block.
- AonymousGuy
-
Scratcher
1000+ posts
Else If
No support.
Find me a situation in which this block is used, and I'll find you a very simple solution that doesn't require YET ANOTHER extraneous block.
if <> then
else
if <> then
else
if <> then
else
if <> then
else
if <> then
else
if <> then
else
if <> then
else
if <> then
else
if <> then
else
if <> then
else
if <> then
else
if <> then
else
- ExtremeLogic
-
Scratcher
500+ posts
Else If
if <> thenetc.
else
if <> then
else
if <> then
else
if <> then
else
if <> then
else
if <> then
else
end
end
end
end
end
end
- bozman
-
Scratcher
73 posts
Else If
I don't think you people are getting my point. I know It can be done through stacking blocks, but an else if block would just make the scripts look easier to comprehend for newer scratchers, and would allow for much more cleaner looking scripts.
- fetchydog567
-
Scratcher
100+ posts
Else If
I don't think you people are getting my point. I know It can be done through stacking blocks, but an else if block would just make the scripts look easier to comprehend for newer scratchers, and would allow for much more cleaner looking scripts.It's confusing for some people
else if <> then
end
Last edited by fetchydog567 (April 1, 2014 01:47:41)
- fetchydog567
-
Scratcher
100+ posts
Else If
How did you switch up the colors in the blocks in your signature?if <> thenetc.
else
if <> then
else
if <> then
else
if <> then
else
if <> then
else
if <> then
else
end
end
end
end
end
end















