Discuss Scratch
- Discussion Forums
- » Suggestions
- » a finish unless block
- mlcreater
- Scratcher
1000+ posts
a finish unless block
I want to see if I understand. no, finish the script until something is true
So, if you run this script:
give away all my animals :: customam I correct in understanding that it will stop after you get 5 giraffes, and you will never get the 5 chimps?
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)
← there are 3 sig figs and 0 kumquats
- hotdogbananaman
- Scratcher
100+ posts
a finish unless block
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-I want to see if I understand. no, finish the script until something is true
So, if you run this script:give away all my animals :: customam I correct in understanding that it will stop after you get 5 giraffes, and you will never get the 5 chimps?
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)
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.
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
then countinues the script under so it stops the script whenever a certain condition = true.
minecraft creepers be like:
forever
stop [this house from existing v]
end
- DarthVader4Life
- Scratcher
1000+ posts
a finish unless block
so it does a skip.then countinues the script under so it stops the script whenever a certain condition = true.
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.
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
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.
“Finish the script until something is true”? Like
Are you suggesting
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?
I have no idea what you're talking about.
What is this? no, finish the script until something is true
“Finish the script until something is true”? Like
...that?
...
...
...
...
...
...
...
Oh no something is true so now this script won't continue
...
...
...
...
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
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 Are you asking to break a loop, like in Swift?
I have no idea what you're talking about.What is this? no, finish the script until something is true
“Finish the script until something is true”? Like...that?
...
...
...
...
...
...
...
Oh no something is true so now this script won't continue
...
...
...
...
Are you suggestingstop [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
minecraft creepers be like:
forever
stop [this house from existing v]
end
- 64lu
- Scratcher
1000+ posts
a finish unless block
how is this not the same as your suggestion?if <...> then
stop [this script v]
end
- 64lu
- Scratcher
1000+ posts
a finish unless block
if i were to use the workaround that fdreerf gave, it would be:I want to see if I understand. no, finish the script until something is true
So, if you run this script:give away all my animals :: customam I correct in understanding that it will stop after you get 5 giraffes, and you will never get the 5 chimps?
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)
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:
foreverBasically, you want to stop everything if something is false, aka “not true”
if <not<>> then
stop [this script v]
end
end
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!
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 ::controlBut that doesn't make sense, because it's basically
this is a loop ok? I don't get this plugin.::grey
end::cont
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
Cool! Support then! This would be very useful!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-I want to see if I understand. no, finish the script until something is true
So, if you run this script:give away all my animals :: customam I correct in understanding that it will stop after you get 5 giraffes, and you will never get the 5 chimps?
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)
- PkmnQ
- Scratcher
1000+ posts
a finish unless block
I think you should add an example for the script.
Maybe something like this:
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
because then it goes to the next, the thing under ithow is this not the same as your suggestion?if <...> then
stop [this script v]
end
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::looksIf you want to see my topic “What makes a good topic?”, then go to Which topics are good?
say [hello]
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
- Discussion Forums
- » Suggestions
- » a finish unless block