Discuss Scratch
- Discussion Forums
- » Suggestions
- » ?-Operator [inline if-then-else]
- HTML-Fan
- Scratcher
1000+ posts
?-Operator [inline if-then-else]
You can't drop a block into a reporter input.
https://scratch.mit.edu/discuss/topic/418208/?page=1
There I talk about the advanteges of a condition operator.
https://scratch.mit.edu/discuss/topic/418208/?page=1
There I talk about the advanteges of a condition operator.
Joke of the century: Just made a good remix of this with Scratch's music extension.
BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
- Mr_PenguinAlex
- Scratcher
1000+ posts
?-Operator [inline if-then-else]
4 blocks is extremely slow and annoying?Just because a block has a workaround, in this case, an extremely slow, inefficient and annoying workaround, doesn't mean it can't be in Scratch.This can be workarounded easily.if <key [space v] pressed?> thenNo support
say [Key space is pressed] for (2) secs
else
say [Key space is not pressed] for (2) secs
end
- HTML-Fan
- Scratcher
1000+ posts
?-Operator [inline if-then-else]
In scratch, each block has to be parsed, like BASIC on the C64. And, similar to BASIC, if you have a command that makes something, it's always faster then a workaround for the same thing.
And it's really annoying since the inline if else is a reporter, so you need a variable to store it. If you need this multiple times like here:
And it's really annoying since the inline if else is a reporter, so you need a variable to store it. If you need this multiple times like here:
go to x: (<key [right v] pressed?> ? (10) : (0) :: control) y: (<key [up v] pressed?> ? (10) : (0) :: control)you need multiple variables. And please, don't come up with an alternative for this specific line.
Joke of the century: Just made a good remix of this with Scratch's music extension.
BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
- gilbert_given_189
- Scratcher
500+ posts
?-Operator [inline if-then-else]
bump on a borderline
If you see a line above this text, it means that below this text is my signature.
This place is just a memory to me, I may return occasionally but I'm busy.
I guess I'm an ATer now.
I think I may have seasoned my posts a bit too much.
Colored Pencil is supposed to color the siggy, but Scratch says it's too big.
There is nothing here…
don don pan pan
dondo pan pan
- HTML-Fan
- Scratcher
1000+ posts
?-Operator [inline if-then-else]
This is a dupe!
Joke of the century: Just made a good remix of this with Scratch's music extension.
BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
- fdreerf
- Scratcher
1000+ posts
?-Operator [inline if-then-else]
Necroposts don't exist in suggestionsPlease don't bump old threads bump
Hyped for MS-DOS 11.0
- ilovecoding10
- Scratcher
95 posts
?-Operator [inline if-then-else]
+-0 so idk support lol this is old also
If you want to see my signature you will have to highlight this and press ctrl (Or cmd for Mac) + shift + down
Sorry for it not being mobile friendly :(
I have a 350 follower pfp competition here if you want to check it out - The Project, The Studio
Say hi on my profile!
when lockdown starts :: hat blockLike my rainbow blocks?
repeat until <[coronavirus] = [ends] :: control block> :: list
Stay home, Stay safe :: pen block
When you're at home maybe you can check out new scratchers... :: sensing block
ahem... :: motion block
From ilovecoding10 :: looks block
CODY::hat #f2f2f2
╭━━━┳━━━┳━━━┳╮╱╱╭╮::#ff6363
┃╭━╮┃╭━╮┣╮╭╮┃╰╮╭╯┃::#ff9a47
┃┃╱╰┫┃╱┃┃┃┃┃┣╮╰╯╭╯::#fff763
┃┃╱╭┫┃╱┃┃┃┃┃┃╰╮╭╯╱::#88ff7d
┃╰━╯┃╰━╯┣╯╰╯┃╱┃┃╱╱::#6b84ff
╰━━━┻━━━┻━━━╯╱╰╯╱╱::#c26eff
(Click this pic)
- PizzaAddict4Life
- Scratcher
1000+ posts
?-Operator [inline if-then-else]
dupe!This is a
Your right about it being a dupe, but you are wrong with the link
This is the real dupe, which was linked on the first page but still not closed or noticed.
Projects
#SaveCubeupload | Kumquat Attack | Game in which you can submit your avatar
Studios
Be Moist | Forum Helpers
Topics
#RoadToMoist100
Press CTRL+SHIFT+DOWN after highlighting a bit of my signature to see the rest of my signature (and keep doing it)
Whats a stick?
If you suggest that the days since 2000 block is removed, you are going to feel the wrath of my TNT recklessness
My kumquat protectors: (~˘▾˘)~ ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) (◕‿◕✿) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ༼ つ ◕_◕ ༽つ
Total Power: 35
Ok this is the end of my signature, but scroll down some more if you want some nice color hex codes.
Turquoise ish green: #17e67b
Epic nice blue: #0090c0
Cool light blue: #c4ffec, #a3ffe1, #85ffd7
Bippity Boppity Boo wow you found me congrats
#SaveCubeupload | Kumquat Attack | Game in which you can submit your avatar
Studios
Be Moist | Forum Helpers
Topics
#RoadToMoist100
Press CTRL+SHIFT+DOWN after highlighting a bit of my signature to see the rest of my signature (and keep doing it)
Whats a stick?
If you suggest that the days since 2000 block is removed, you are going to feel the wrath of my TNT recklessness
My kumquat protectors: (~˘▾˘)~ ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) (◕‿◕✿) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ༼ つ ◕_◕ ༽つ
Total Power: 35
Ok this is the end of my signature, but scroll down some more if you want some nice color hex codes.
Turquoise ish green: #17e67b
Epic nice blue: #0090c0
Cool light blue: #c4ffec, #a3ffe1, #85ffd7
Bippity Boppity Boo wow you found me congrats
- jaguar1501
- Scratcher
1000+ posts
?-Operator [inline if-then-else]
I'm not quite sure what could be done with this that could not be done with the regular E block. Could someone explain?
- HTML-Fan
- Scratcher
1000+ posts
?-Operator [inline if-then-else]
Oh, an old post by me does. I'm not quite sure what could be done with this that could not be done with the regular E block. Could someone explain?
In scratch, each block has to be parsed, like BASIC on the C64. And, similar to BASIC, if you have a command that makes something, it's always faster then a workaround for the same thing.
And it's really annoying since the inline if else is a reporter, so you need a variable to store it. If you need this multiple times like here:go to x: (<key [right v] pressed?> ? (10) : (0) :: control) y: (<key [up v] pressed?> ? (10) : (0) :: control)you need multiple variables. And please, don't come up with an alternative for this specific line.
Joke of the century: Just made a good remix of this with Scratch's music extension.
BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
- jaguar1501
- Scratcher
1000+ posts
?-Operator [inline if-then-else]
Ah, I understand now. Thanks!Oh, an old post by me does. I'm not quite sure what could be done with this that could not be done with the regular E block. Could someone explain?In scratch, each block has to be parsed, like BASIC on the C64. And, similar to BASIC, if you have a command that makes something, it's always faster then a workaround for the same thing.
And it's really annoying since the inline if else is a reporter, so you need a variable to store it. If you need this multiple times like here:go to x: (<key [right v] pressed?> ? (10) : (0) :: control) y: (<key [up v] pressed?> ? (10) : (0) :: control)you need multiple variables. And please, don't come up with an alternative for this specific line.
- Basic88
- Scratcher
1000+ posts
?-Operator [inline if-then-else]
Support! I see this block in “Snap!” and it helps shorten scripts.
I have moved to @BrowserExtension
- sathvikrias
- Scratcher
500+ posts
?-Operator [inline if-then-else]
i understand why you want this, but easily workaroundable so semi-support
Moving from Scratch? Don't learn C or Java, try Snap!
- Vanilla2011
- Scratcher
500+ posts
?-Operator [inline if-then-else]
Agree. Semi-support. i understand why you want this, but easily workaroundable so semi-support
aw heck naw someones' wanting to ban the sab spunch bop faec from scrathc
(ツ::#000)//Master Kakawam, slays evil kumquats.
- qrcool
- Scratcher
1000+ posts
?-Operator [inline if-then-else]
I’ve always found that, while lazy coders are said to be the best coders, and this does help laziness, the current if/else block organizes things in an easier-to-understand fashion. However, from my understanding, this essentially removes the need for a boolean variable to state whether the block returned if, elif, or else. Thus, this would be rather useful, especially given the fact that lists and variables are in the same category.
Edit: My support is under the condition that the current block would also stay, as a loop can do things a reporter can't.
Edit: My support is under the condition that the current block would also stay, as a loop can do things a reporter can't.
Last edited by qrcool (Nov. 1, 2020 14:52:19)
he/they/it/neos
- arvepro3579
- Scratcher
100+ posts
?-Operator [inline if-then-else]
No support just:
when green flag clicked
ask [...] and wait
if <(answer) = [..]> then
say [...]
else
say [...]
end
Not on scratch very often
- -InsanityPlays-
- Scratcher
1000+ posts
?-Operator [inline if-then-else]
Full support! It's in Snap and quite useful.
Mockuup (the size issue is due to blob8108's scratchblocks generator)
Mockuup (the size issue is due to blob8108's scratchblocks generator)
Last edited by -InsanityPlays- (Nov. 1, 2020 11:57:36)
Welcome to my signature!
I've moved accounts. Anyway, did this post help you? Go follow me on my new account!
Today's Links: Scratch 4.0 Leaked Information, Astronomical - The Third, The Forum Community
follow me on scratch or i am sad, subscribe to my YouTube channel or bad luck for the rest of your life
My Final Shoutout: hekcer because in computer science class, he is the hekcerman
-InsanityPlays- Fan Studio! (closed) | Astronomical - The Third | Best of -InsanityPlays- 2020
my channel, my website, ctrl+shift+down for more STUFF
I've moved accounts. Anyway, did this post help you? Go follow me on my new account!
Today's Links: Scratch 4.0 Leaked Information, Astronomical - The Third, The Forum Community
follow me on scratch or i am sad, subscribe to my YouTube channel or bad luck for the rest of your life
My Final Shoutout: hekcer because in computer science class, he is the hekcerman
-InsanityPlays- Fan Studio! (closed) | Astronomical - The Third | Best of -InsanityPlays- 2020
my channel, my website, ctrl+shift+down for more STUFF
2020's Advent Collection:
more STUFF
- Discussion Forums
- » Suggestions
- » ?-Operator [inline if-then-else]