Discuss Scratch

AidyGamer60
Scratcher
100+ posts

Put the while block in the block palette

Oh my gosh, yes! I had to ask for the link to this! Please add this, Scratch! It already exists in a few projects! So please, add it. Or we'll have to take the While block out of our backpack every time we need it!

while <> {
} :: control

Last edited by AidyGamer60 (Feb. 13, 2021 17:46:52)


mostly inactive!!
SpinningCube
Scratcher
100+ posts

Put the while block in the block palette

Support. I fail to understand why Scratch Team chose to use repeat until rather than while, which exists in other programming languages. It could be reworded slightly though.

Here's the unused block:
while <> {

}::control

Here's a reworded version for scratch:
repeat while <> {

}::control

I don't think they need to implement it soon, but it is something that they could consider at some point.
Scratchperson1000000
Scratcher
500+ posts

Put the while block in the block palette

sorry but this is a super easy workaround
while <...> {...} :: control//is possible with

repeat until <not<...>
...
end

forever if <...> {...} :: control :: cap :: loop//is possible with

forever
if <...> then
...
these blocks were removed because their workarounds were way too easy

Last edited by Scratchperson1000000 (Feb. 14, 2021 20:25:51)


DJHNVLKJUDHFIUYHDLKUHDKLFJUYGDKJFGDHMFGMDBKJSDBCKSNICUNDCHICUGUYDSGFUHGADJFIEUGAFKJ
miniepicness
Scratcher
1000+ posts

Put the while block in the block palette

Scratchperson1000000 wrote:

sorry but this is a super easy workaround
while <...> {...} :: control//is possible with

repeat until <not<...>
...
end

forever if <...> {...} :: control :: cap :: loop//is possible with

forever
if <...> then
...
these blocks were removed because their workarounds were way too easy
did you read the full post?
the block wasn't removed. it's only been removed from the block palette.
The code for it fully works and I even linked an example in the original post.

if you're all for workarounds then we might as well remove the multiplication block because you can make a workaround with the division block.
((var1) * (var2))
can be made by
((var1) / ((1) / (var2)))

Last edited by miniepicness (Feb. 14, 2021 21:12:18)

Scratchperson1000000
Scratcher
500+ posts

Put the while block in the block palette

EDO2012 wrote:

you could hack it in…
or, you could put it in your backpack

DJHNVLKJUDHFIUYHDLKUHDKLFJUYGDKJFGDHMFGMDBKJSDBCKSNICUNDCHICUGUYDSGFUHGADJFIEUGAFKJ
Scratchperson1000000
Scratcher
500+ posts

Put the while block in the block palette

miniepicness wrote:

Scratchperson1000000 wrote:

sorry but this is a super easy workaround
while <...> {...} :: control//is possible with

repeat until <not<...>
...
end

forever if <...> {...} :: control :: cap :: loop//is possible with

forever
if <...> then
...
these blocks were removed because their workarounds were way too easy
did you read the full post?
the block wasn't removed. it's only been removed from the block palette.
The code for it fully works and I even linked an example in the original post.

if you're all for workarounds then we might as well remove the multiplication block because you can make a workaround with the division block.
((var1) * (var2))
can be made by
((var1) / ((1) / (var2)))
I meant removed from the pallette but you can use the JavaScript Converter thingy

DJHNVLKJUDHFIUYHDLKUHDKLFJUYGDKJFGDHMFGMDBKJSDBCKSNICUNDCHICUGUYDSGFUHGADJFIEUGAFKJ
the2000
Scratcher
1000+ posts

Put the while block in the block palette

Scratchperson1000000 wrote:

EDO2012 wrote:

you could hack it in…
or, you could put it in your backpack
Yeah but the project you got it from either hacked it in or took it from someone who hacked it in

miniepicness
Scratcher
1000+ posts

Put the while block in the block palette

the2000 wrote:

Scratchperson1000000 wrote:

EDO2012 wrote:

you could hack it in…
or, you could put it in your backpack
Yeah but the project you got it from either hacked it in or took it from someone who hacked it in
You shouldn't need to hack in a useful block when it should be in the palette in the first place?
the2000
Scratcher
1000+ posts

Put the while block in the block palette

miniepicness wrote:

the2000 wrote:

Scratchperson1000000 wrote:

EDO2012 wrote:

you could hack it in…
or, you could put it in your backpack
Yeah but the project you got it from either hacked it in or took it from someone who hacked it in
You shouldn't need to hack in a useful block when it should be in the palette in the first place?
I know, I was just saying…

(By the way, I made a somewhat similar post)

dertermenter
Scratcher
1000+ posts

Put the while block in the block palette

Yeah, I think every block that works but isn't in the block pallete should be added to the pallete, not just the ‘while’ block


The2000 wrote:

All suggestions are unnecessary. If a suggestion is necessary then it's a bug report.

dertermenter wrote:

April Fools Day on the forums has been a repeated privilege, not an expectation
Scratchperson1000000
Scratcher
500+ posts

Put the while block in the block palette

alexphan wrote:

duckboycool wrote:

MathlyCat wrote:

-snip-
1. While loops are in other languages while forever loops are not.
2. Forever If was removed for purpose of its workaround being blatantly easy. I don't see how and why the While block fits in this category, not only would it improve the change from scratch to other languages, it would make projects easier to make and add a new level of complexity.

Your only reasoning is ‘oh workaround and it’s gone so it doesn't deserve to be re-added'
The while block fits into this category for the workaround being extremely easy. Also, it means nothing to add it back in. Two blocks. We don't support the easier following topic for being too easy, this is the same.
So let's remove
go to x: (0) y: (0)
because it has a two-block workaround.
set x to (0)
set y to (0)
and let's remove
(my variable)
because of its one block workaround
[my variable v] of (Sprite v)

DJHNVLKJUDHFIUYHDLKUHDKLFJUYGDKJFGDHMFGMDBKJSDBCKSNICUNDCHICUGUYDSGFUHGADJFIEUGAFKJ
username413SYSTEM
Scratcher
6 posts

Put the while block in the block palette

Literally everyone wrote:

repeat until <not <...>>

end

REMOVE REAPEAT UNTIL I FOUND AN EPIC WORKAROUND THAT ALWAYS WORKS

while <not <...>>    { 
...
} :: control

</s> this is why re-adding While wouldn't hurt anyone

professional imageshack hater
emgo002
Scratcher
10 posts

Put the while block in the block palette

emgo002
Scratcher
10 posts

Put the while block in the block palette

Roblox888i
Scratcher
1000+ posts

Put the while block in the block palette

Lets remove:

move () steps

Because:

change x by ()

Below this little line ^ is my signature, you can edit it by going to scratch.mit.edu/discuss/settings/YOURUSERHERE/ also highlight a part and do CNTRL+SHIFT+DOWN to scroll down.



Roblox888i
===========================================================================================================
| Ocular Profile | Scratch Profile | ScratchStats Profile | Github Profile |
=================================
| | Scratch Wiki Profile | |
===========================================================================================================


REST OF SIGNATURE NOT DONE
twogadugary
Scratcher
100+ posts

Put the while block in the block palette

Since the block works, I think it should be added to the palette. I'm pretty sure I actually make repeat until not loops far more than repeat until loops and while loops appear in more other languages than repeat until loops, so I'm not sure why the Scratch Team decided to keep it hidden.

you've been trolledㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ
7salad3salad
Scratcher
1000+ posts

Put the while block in the block palette

I think you should be able to use this to make a script run while a different script is running


Forumer Post Count Bar Graph! (inspired by AIGamesDeveloper)
Project: Forummon by randomguy3513
hi, contrast
JUST BECAUSE THERES A WORKAROUND ISNT A GOOD REASON TO NOT SUPPORT!!!

dont call me 7salad
dont call me 7salsa lol
just simply “Salad” will do.

:]::#00289A// This is my pet Noobles! He protects my signature from [i]unwanted guests[/i]

B){

}::#800080//This is Noobles' big brother, Probles. He has returned and Noobles is happy to see him!
//oh, yeah, he is also cool so he wears sunglasses.

:P::cap sensing//This is their little brother, Doobles

old banner thnng
hiPeeps124816
Scratcher
500+ posts

Put the while block in the block palette

No support, if it was added, it would be better off replacing the repeat until blocks, but then every project with repeat until would have to have while not instead

Generation 7: First time you see this? Copy and paste it on top of your signature in the forums and increase generation by 1.

thethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethe
Specs -
OS: macOS 11.6.4
Browser: Varies, usually Safari 15.3 or Opera GX 83 or Firefox 96
Computer: Late 2013 MacBook Pro 2.4GHz Dual Core Intel Core i5
highlight and shift down arrow




;
twogadugary
Scratcher
100+ posts

Put the while block in the block palette

hiPeeps124816 wrote:

No , if it was added, it would be better off replacing the repeat until blocks, but then every project with repeat until would have to have while not instead

It is already added, and no we won't have to replace repeat until.

you've been trolledㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ
Yellowsheep43
Scratcher
1000+ posts

Put the while block in the block palette

“While” loops are more common in standard programming, whereas I don't know of a single programming language (other than scratch) that uses “Repeat until.”
Of course, I only know Java and Python, but still.

How to use scratchblocks \ How to make your project popular \ The Do's and Do Not's of the Suggestions Forum
Highlight this and use Ctrl + Shift + Down arrow to see the rest of my signature!
My signature is an evil kumquat factory

When [Post v] :: #ffd900
if <(Kumquats available? :: #00ff7b) = <True :: #517d48> :: #d642e3> then :: #00e32d
Make evil kumquats :: #00d5ff
end
Haha invisible block go brrr :: cap :: #ffffff
Angry David


It's spelled AMONG US, not Amogus! Know the difference!

(((((I reside in the ((Questions About Scratch :: #00e8a2 stack) :: #00e8c1 stack) and ((Suggestions :: #00e8a2 stack) :: #00e8c1 stack) forums :: #ff0073) :: #ffae00) :: #ffd500) :: #00ff2a) :: #0095ff) :: #8c00ff hat
I spend a bit of time everywhere <Except the wiki :: #94634a> :: #dd00ff cap

(_/(._. v)|_ :: #0051ff) :: #55ff00 hat // This is an unnamed servant that restocks on kumquats constantly
As long as Signal (When gf clicked :: #ff0059) [given v] {
Produce Kumquats :: #08d16d
} :: #9a0f2a
I enjoy [Among Us v], [FNF v], [Roblox v], [Memes v], [Object Shows v], and [Anthropomorphic animals v]:: #08b0d1 cap


Powered by DjangoBB