Discuss Scratch
- meepmep_
-
Scratcher
100+ posts
When <> is not true block
This is a problem that the
if <> thenblock takes care of
else
end
Last edited by meepmep_ (Nov. 30, 2022 16:57:18)
- owlover2010
-
Scratcher
100+ posts
When <> is not true block
I like the idea, but events blocks are already slow. I would use this workaround:
I do not give support for this suggestion.
when green flag clicked
forever
if <> then
...
end
end
I do not give support for this suggestion.
- cs3868895
-
Scratcher
1000+ posts
When <> is not true block
Ok, I need that instead to be a block, N o w firstwhen <> is not true :: events :: hat
Its notwhen <> is true :: events :: hat
I bet it has a easy workaround
Last edited by cs3868895 (Dec. 2, 2022 06:14:47)
- cookieclickerer33
-
Scratcher
1000+ posts
When <> is not true block
Ok, I need that instead to be a block, N o w firstwhen <> is not true :: events :: hat
Its notwhen <> is true :: events :: hat
I bet it has a easy workaround
when [ timer v] > ((timer) - <not <not<When value here>>>
- An0therRand0mC0der
-
Scratcher
1000+ posts
When <> is not true block
Are there any benefits to adding this block? Considering the workaround for this is already easy and functions the same.
- hill_walker123
-
Scratcher
100+ posts
When <> is not true block
Ok, I need that instead to be a block, N o w firstwhen <> is not true :: events :: hat
Its notwhen <> is true :: events :: hat
I bet it has a easy workaroundwhen [ timer v] > ((timer) - <not <not<When value here>>>
when [timer v] > ((timer) - <...>) // when <> is true
when [timer v] > ((timer) - <not<...>>) // when <> is false
Last edited by hill_walker123 (Dec. 2, 2022 15:50:11)
- gdfsgdfsgdfg
-
Scratcher
1000+ posts
When <> is not true block
the purpose
of this block
of this block
when <> is true ::events :: hat // is that it can't be stopped so it can do some workarounds like this
when <key [ v] pressed?> is true ::events :: hat
// =
when [ v] key pressed
Are there any benefits to adding this block? Considering the workaround for this is already easy and functions the same.
Last edited by gdfsgdfsgdfg (Dec. 2, 2022 15:55:15)
- hill_walker123
-
Scratcher
100+ posts
When <> is not true block
the purposethen just use
of this blockwhen <> is true ::events :: hat // is that it can't be stopped so it can do some workarounds like this
when <key [ v] pressed?> is true ::events :: hat
// =
when [ v] key pressed
when [ v] key pressed
however if it's the other thing you might be saying, then:
when [timer v] > ((timer) - <...>)
repeat until <not <...>>
...
end
Last edited by hill_walker123 (Dec. 2, 2022 15:56:45)
- gdfsgdfsgdfg
-
Scratcher
1000+ posts
When <> is not true block
the purposethen just use
of this blockwhen <> is true ::events :: hat // is that it can't be stopped so it can do some workarounds like this
when <key [ v] pressed?> is true ::events :: hat
// =
when [ v] key pressedwhen [ v] key pressed
bruh Im talking about how you can do some workarounds for this block
Last edited by gdfsgdfsgdfg (Dec. 2, 2022 15:56:31)
- hill_walker123
-
Scratcher
100+ posts
When <> is not true block
…the purposethen just use
of this blockwhen <> is true ::events :: hat // is that it can't be stopped so it can do some workarounds like this
when <key [ v] pressed?> is true ::events :: hat
// =
when [ v] key pressedwhen [ v] key pressed
bruh Im talking about how you can do some workarounds for this block
- GUYWHOLOVESCODE
-
Scratcher
500+ posts
When <> is not true block
A lot of people ignored the fact that you're asking for an Events block. My suggestion for the workaround:
when green flag clickedand then the code meant to happen here. Do you want it to wait until a broadcast is sent to start checking?
wait until <not < > >
when I receive [ v]That's really all I got for you.
wait until <not <>>
- Xcvfdd
-
Scratcher
500+ posts
When <> is not true block
No support. The workaround is easy:
<not <key [ v] pressed?>>Or
forever
if <not <key [ v] pressed?>> then
end
end
- BrodyTheRedflower
-
Scratcher
100+ posts
When <> is not true block
No support, do this easy workaround
when green flag clicked
forever
if <[thing] = <not <thing>>> then
...
end
end
- _ProjectDev
-
Scratcher
17 posts
When <> is not true block
when green flag clicked
forever
if <not <[x] = [y]>> then
...
end
- _ProjectDev
-
Scratcher
17 posts
When <> is not true block
A lot of people ignored the fact that you're asking for an Events block. My suggestion for the workaround:when green flag clickedand then the code meant to happen here. Do you want it to wait until a broadcast is sent to start checking?
wait until <not < > >when I receive [ v]That's really all I got for you.
wait until <not <>>
If you want it to continue waiting after it's not equal or continue doing the thing while it's equal you can put it in a forever loop
- cookieclickerer33
-
Scratcher
1000+ posts
When <> is not true block
There’s an easy workaround for if <> is true as well<not <>>Easy workaround if when the “if <> is true” gets implemented
- -Valtren-
-
Scratcher
1000+ posts
When <> is not true block
which is precisely why it's not added yet.There’s an easy workaround for if <> is true as well<not <>>Easy workaround if when the “if <> is true” gets implemented












