Discuss Scratch

mlcreater
Scratcher
1000+ posts

a finish unless block

hotdogbananaman wrote:

no, finish the script until something is true
I want to see if I understand.

So, if you run this script:
give away all my animals :: custom
finish unless <(giraffes) = (5) :: operators boolean> {
set [zebras v] to (5)
set [giraffes v] to (5)
set [chimpanzees v] to (5)
} :: control
set [dogs v] to (101)
am I correct in understanding that it will stop after you get 5 giraffes, and you will never get the 5 chimps?

← there are 3 sig figs and 0 kumquats





hotdogbananaman
Scratcher
100+ posts

a finish unless block

mlcreater wrote:

hotdogbananaman wrote:

no, finish the script until something is true
I want to see if I understand.

So, if you run this script:
give away all my animals :: custom
finish unless <(giraffes) = (5) :: operators boolean> {
set [zebras v] to (5)
set [giraffes v] to (5)
set [chimpanzees v] to (5)
} :: control
set [dogs v] to (101)
am I correct in understanding that it will stop after you get 5 giraffes, and you will never get the 5 chimps?
yes, and then it would go to the 101 dogs, but also if music was playing it would stop it or if it was saying something it would stop like maybe it would be like this hi how or you doi-

minecraft creepers be like:
forever
stop [this house from existing v]
end
DarthVader4Life
Scratcher
1000+ posts

a finish unless block

so it stops the script whenever a certain condition = true.

Be Moist Also, here's a helpful link to Ocular
I am DV4L, Erector of Text Walls, Typer of Long Posts, Creator of Mini-mod posts
The kumquats have eaten this line, so I have to have a new way to repel them.
Had a bad day or are feeling bored? Watch this to make your day better in an interesting way.
Do you think you've been banned unfairly? Then you'd be wrong. The ST aren't children, so quit acting like they are.
hotdogbananaman
Scratcher
100+ posts

a finish unless block

DarthVader4Life wrote:

so it stops the script whenever a certain condition = true.
then countinues the script under

minecraft creepers be like:
forever
stop [this house from existing v]
end
DarthVader4Life
Scratcher
1000+ posts

a finish unless block

hotdogbananaman wrote:

DarthVader4Life wrote:

so it stops the script whenever a certain condition = true.
then countinues the script under
so it does a skip.
why not
Skip when <> {

} :: control
?

Last edited by DarthVader4Life (June 21, 2020 22:58:37)


Be Moist Also, here's a helpful link to Ocular
I am DV4L, Erector of Text Walls, Typer of Long Posts, Creator of Mini-mod posts
The kumquats have eaten this line, so I have to have a new way to repel them.
Had a bad day or are feeling bored? Watch this to make your day better in an interesting way.
Do you think you've been banned unfairly? Then you'd be wrong. The ST aren't children, so quit acting like they are.
hotdogbananaman
Scratcher
100+ posts

a finish unless block

fdreerf wrote:

if <...> then
stop [other scripts in sprite v]
end
no. I have another reply answering this

Last edited by hotdogbananaman (June 21, 2020 22:51:28)


minecraft creepers be like:
forever
stop [this house from existing v]
end
ioton
Scratcher
500+ posts

a finish unless block

Are you asking to break a loop, like in Swift?
I have no idea what you're talking about.

hotdogbananaman wrote:

no, finish the script until something is true
What is this?
“Finish the script until something is true”? Like
...
...
...
...
...
...
...
...
Oh no something is true so now this script won't continue
...
...
...
...
that?
Are you suggesting
stop [this script v] :: stack // this?
So basically a “stop this script” block but it's a stack block?
If you were to stop a script at a specific time that you already know, then why not use the original block?
Or are you suggesting basically just this?
repeat until <>

end


▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓
▓░░█████░░██████░░█████░░██████░░█░░░█░░░▓
▓░░░▒█▒▒▒░█▒▒▒▒█▒░░▒█▒▒▒░█▒▒▒▒█▒░██░░█▒░░▓
▓░░░░█▒░░░█▒░░░█▒░░░█▒░░░█▒░░░█▒░█▒█░█▒░░▓
▓░░░░█▒░░░█▒░░░█▒░░░█▒░░░█▒░░░█▒░█▒░██▒░░▓
▓░░█████░░██████▒░░░█▒░░░██████▒░█▒░░█▒░░▓
▓░░░▒▒▒▒▒░░▒▒▒▒▒▒░░░░▒░░░░▒▒▒▒▒▒░░▒░░░▒░░▓
▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
hotdogbananaman
Scratcher
100+ posts

a finish unless block

ioton wrote:

Are you asking to break a loop, like in Swift?
I have no idea what you're talking about.

hotdogbananaman wrote:

no, finish the script until something is true
What is this?
“Finish the script until something is true”? Like
...
...
...
...
...
...
...
...
Oh no something is true so now this script won't continue
...
...
...
...
that?
Are you suggesting
stop [this script v] :: stack // this?
So basically a “stop this script” block but it's a stack block?
If you were to stop a script at a specific time that you already know, then why not use the original block?
Or are you suggesting basically just this?
repeat until <>

end
no, 2 things FOR THE 100TH TIME IT IS NOT A LOOP and the stuff this scripte wont let it countinue the thing under like it would in a if blank than, were if it is done then it will do the ones under

minecraft creepers be like:
forever
stop [this house from existing v]
end
64lu
Scratcher
1000+ posts

a finish unless block

fdreerf wrote:

if <...> then
stop [this script v]
end
how is this not the same as your suggestion?
64lu
Scratcher
1000+ posts

a finish unless block

mlcreater wrote:

hotdogbananaman wrote:

no, finish the script until something is true
I want to see if I understand.

So, if you run this script:
give away all my animals :: custom
finish unless <(giraffes) = (5) :: operators boolean> {
set [zebras v] to (5)
set [giraffes v] to (5)
set [chimpanzees v] to (5)
} :: control
set [dogs v] to (101)
am I correct in understanding that it will stop after you get 5 giraffes, and you will never get the 5 chimps?
if i were to use the workaround that fdreerf gave, it would be:
if <(giraffes) = (5) :: operators boolean> then 
stop [this script v]


else
set [zebras v] to (5)
set [giraffes v] to (5)
set [chimpanzees v] to (5)
end
Madcatofdoom
Scratcher
500+ posts

a finish unless block

So you want this:
forever
if <not<>> then
stop [this script v]
end
end
Basically, you want to stop everything if something is false, aka “not true”

Last edited by Madcatofdoom (June 22, 2020 05:59:12)


Center tags are noice!

Oh, and did you know the color of this line of text is called skyblue?

I *love* formating!

Madcatofdoom | Human | Boy | 12yrs | Forum Helper | Be Moist


The ST are evil dictators that harvest waffles from the users of Scratch.

And, how did you see this part? Ctrl-Shift-Down? Probably.



Be moist








;
TheDreamyProfessor
Scratcher
500+ posts

a finish unless block

so like this?
finish this script until ::control
this is a loop ok? I don't get this plugin.::grey
end::cont
But that doesn't make sense, because it's basically
ztop [all]::control <--stack block
if <stuff> then
stuff
[scratchblocks]
(wot is wrong with the plugin?)
Anyway, so basically your asking scratch to perform a script EVEN when the script in particular is already finished. Coding doesn't work like that man.

500 posts !!(๑>◡<๑)
hii ! call me xue 〜
i love cats , drawing , and music (^_-)
fav artists : odetari, kikuo, 6arelyhuman, kets4eki, ayesha, alex g (╹◡╹)♡

xoxo (kisses hugs) - 6arelyhuman
01:06 ━━━━⬤─────── 04:05













































































are u stalking me
PkmnQ
Scratcher
1000+ posts

a finish unless block

delet

Last edited by PkmnQ (June 22, 2020 11:19:37)


This is an account that exists.

Here, have a useful link:
The Official List of Rejected Suggestions by Za-Chary

PkmnQ
Scratcher
1000+ posts

a finish unless block

delet

Last edited by PkmnQ (June 22, 2020 11:19:26)


This is an account that exists.

Here, have a useful link:
The Official List of Rejected Suggestions by Za-Chary

--Explosion--
Scratcher
1000+ posts

a finish unless block

hotdogbananaman wrote:

mlcreater wrote:

hotdogbananaman wrote:

no, finish the script until something is true
I want to see if I understand.

So, if you run this script:
give away all my animals :: custom
finish unless <(giraffes) = (5) :: operators boolean> {
set [zebras v] to (5)
set [giraffes v] to (5)
set [chimpanzees v] to (5)
} :: control
set [dogs v] to (101)
am I correct in understanding that it will stop after you get 5 giraffes, and you will never get the 5 chimps?
yes, and then it would go to the 101 dogs, but also if music was playing it would stop it or if it was saying something it would stop like maybe it would be like this hi how or you doi-
Cool! Support then! This would be very useful!

Last edited by kaj (Tomorrow 00:00:00)
✰✩✭✴★--Explosion--★✴✭✩✰
Forum helper | boy | platformers | 14yrs | guitar | website


PkmnQ
Scratcher
1000+ posts

a finish unless block

I think you should add an example for the script.
Maybe something like this:

set [var 1 v] to [foo]
finish unless <(var 2) = [stop] :: operators> {
set [var 2 v] to [stop]
set [var 1 v] to [bar]
} :: control

(var 1) // foo

This is an account that exists.

Here, have a useful link:
The Official List of Rejected Suggestions by Za-Chary

PkmnQ
Scratcher
1000+ posts

a finish unless block

Also, there is a workaround, but it's stupid.

. . .
if <. . .> then
stop [this script v]
end
. . .
if <. . .> then
stop [this script v]
end
. . .
if <. . .> then
stop [this script v]
end
. . .

Last edited by PkmnQ (June 22, 2020 11:27:37)


This is an account that exists.

Here, have a useful link:
The Official List of Rejected Suggestions by Za-Chary

hotdogbananaman
Scratcher
100+ posts

a finish unless block

64lu wrote:

fdreerf wrote:

if <...> then
stop [this script v]
end
how is this not the same as your suggestion?
because then it goes to the next, the thing under it

minecraft creepers be like:
forever
stop [this house from existing v]
end
BosenChang
Scratcher
1000+ posts

a finish unless block

Is it like
if {
move (10) steps
} then do {
say [hello]
}::control

Last edited by kaj (The day after tomorrow 01:01:01)
Tomatoes are salty? I didn't know that!
Be moist
(-!*o_o*!-) // protecty, my signature kumquat protector. *power level: infinty *magic level: infinty
(?-i_i-?) // claculately, caculates weaknesses and finds out strengths to...
// evil qumquats



My signature change:
Some people don't have empathy; while others do.
Some people false-report projects, and more necropost.

Hello there! I can sometimes help you, or you can help me!


See my projects
I am not advertising. This is a signature. It appers underneath everything I write! To change your signature, go to Discussion Home and scroll down to “change my signature.”
see my projects::looks
say [hello]
If you want to see my topic “What makes a good topic?”, then go to Which topics are good?
Other helpful:
Lists of suggestions by SSB20 *please call him by his nickname*
Which topics are good? (already included) by me
Seth_Zaw
Scratcher
100+ posts

a finish unless block

if <not<>> then

end

¡Aprendamos español con los Alfabetons!
In my new series, you will cover genders of nouns, important and useful phrases, conjugating verbs and adjectives, regular and irregular words, and more, in Spanish!
Click here to get started!
Visit the Official Alfabetons Website: https://alfabetons.com

Powered by DjangoBB