Discuss Scratch

etywhs435gv
Scratcher
5 posts

ading new blocks to scratch

Hi Scratch Team,I have an idea that I think would make coding in Scratch a lot easier, especially for beginners. Right now, if you want to check if a number is odd or even, you have to use a tricky math formula with the mod block, which can be confusing for new users.I think it would be amazing if you added just one new green block to the Operators category. It would have a drop-down menu inside it, just like some other blocks in Scratch. When you click the rectangle menu, you can simply switch it between odd and even.This keeps the block palette clean since it is only one single block instead of two, but it would save beginners a lot of time when making toggles or game menus.Thank you for reading my idea!

Last edited by etywhs435gv (Aug. 20, 2026 18:14:44)

AdaVesta_
Scratcher
1000+ posts

ading new blocks to scratch

please don't list suggestions (though I don't know if you are, because these are operator blocks)

Last edited by AdaVesta_ (Aug. 20, 2026 17:55:22)

HAL95131
Scratcher
100+ posts

ading new blocks to scratch

AdaVesta_ wrote:

please don't list suggestions (though I don't know if you are, because these are operator blocks)

It is not a list, it is a single operator.

They are suggesting this:

[] is [odd v]? :: reporter :: operators // Option 1
[] is [even v]? :: reporter :: operators // Option 2

I'd also like to suggest additional properties:

[] is [prime v]? :: reporter :: operators
[] is [composite v]? :: reporter :: operators

As for stuff like natural, integer, etc. all you really need is check for a decimal or a simple greater or less than check.

Last edited by HAL95131 (Aug. 20, 2026 18:49:22)

HAL95131
Scratcher
100+ posts

ading new blocks to scratch

However, I don't really know if it's necessary… I'm pretty sure you could just do:

<((my number) / (2)) = ([floor v] of ((my number) / (2))::operators)>

I think you'd use ceil for negatives, but I'm not sure.
etywhs435gv
Scratcher
5 posts

ading new blocks to scratch

I think you'd use ceil for negatives, but I'm not sure.

HAL95131 wrote:

AdaVesta_ wrote:

please don't list suggestions (though I don't know if you are, because these are operator blocks)

It is not a list, it is a single operator.

They are suggesting this:

[] is [odd v]? :: reporter :: operators // Option 1
[] is [even v]? :: reporter :: operators // Option 2

I'd also like to suggest additional properties:

[] is [prime v]? :: reporter :: operators
[] is [composite v]? :: reporter :: operators

As for stuff like natural, integer, etc. all you really need is check for a decimal or a simple greater or less than check.
no he actually warned me so i edited my suggestion and by the way this is the block i want scratch to add

Last edited by etywhs435gv (Aug. 20, 2026 22:31:08)

etywhs435gv
Scratcher
5 posts

ading new blocks to scratch

HAL95131 wrote:

However, I don't really know if it's necessary… I'm pretty sure you could just do:

<((my number) / (2)) = ([floor v] of ((my number) / (2))::operators)>

I think you'd use ceil for negatives, but I'm not sure.

i know this way to track odd and even numbers but i wanted scratch to add that one new block to scratch to make coding easier and faster for scatchers

Last edited by etywhs435gv (Aug. 20, 2026 22:32:08)

DeathReviews
Scratcher
100+ posts

ading new blocks to scratch

HAL95131 wrote:

AdaVesta_ wrote:

please don't list suggestions (though I don't know if you are, because these are operator blocks)

It is not a list, it is a single operator.

They are suggesting this:

[] is [odd v]? :: reporter :: operators // Option 1
[] is [even v]? :: reporter :: operators // Option 2

I'd also like to suggest additional properties:

[] is [prime v]? :: reporter :: operators
[] is [composite v]? :: reporter :: operators

As for stuff like natural, integer, etc. all you really need is check for a decimal or a simple greater or less than check.
why would they not be booleans?
etywhs435gv
Scratcher
5 posts

ading new blocks to scratch

HAL95131 wrote:

AdaVesta_ wrote:

please don't list suggestions (though I don't know if you are, because these are operator blocks)

It is not a list, it is a single operator.

They are suggesting this:

[] is [odd v]? :: reporter :: operators // Option 1
[] is [even v]? :: reporter :: operators // Option 2

I'd also like to suggest additional properties:

[] is [prime v]? :: reporter :: operators
[] is [composite v]? :: reporter :: operators

As for stuff like natural, integer, etc. all you really need is check for a decimal or a simple greater or less than check.

i dont want it to be like an input i want it to be like a bolean
purplebunny63
Scratcher
1000+ posts

ading new blocks to scratch

etywhs435gv wrote:

HAL95131 wrote:

AdaVesta_ wrote:

please don't list suggestions (though I don't know if you are, because these are operator blocks)

It is not a list, it is a single operator.

They are suggesting this:

[] is [odd v]? :: boolean :: operators // Option 1
[] is [even v]? :: boolean :: operators // Option 2

I'd also like to suggest additional properties:

[] is [prime v]? :: boolean :: operators
[] is [composite v]? :: boolean :: operators

As for stuff like natural, integer, etc. all you really need is check for a decimal or a simple greater or less than check.

i dont want it to be like an input i want it to be like a bolean
So (look at post you quoted)?

Last edited by purplebunny63 (Yesterday 03:21:08)

jmb1293634
Scratcher
1000+ posts

ading new blocks to scratch

HAL95131 wrote:

However, I don't really know if it's necessary… I'm pretty sure you could just do:

<((my number) / (2)) = ([floor v] of ((my number) / (2))::operators)>

I think you'd use ceil for negatives, but I'm not sure.
or just
<((input::grey) mod (2)) = [0]>//for even
<((input::grey) mod (2)) > [0]>//for odd
HAL95131
Scratcher
100+ posts

ading new blocks to scratch

jmb1293634 wrote:

HAL95131 wrote:

However, I don't really know if it's necessary… I'm pretty sure you could just do:

<((my number) / (2)) = ([floor v] of ((my number) / (2))::operators)>

I think you'd use ceil for negatives, but I'm not sure.
or just
<((input::grey) mod (2)) = [0]>//for even
<((input::grey) mod (2)) > [0]>//for odd

Yes, this, which is why I don't think it's that necessary.
medians
Scratcher
1000+ posts

ading new blocks to scratch

jmb1293634 wrote:

HAL95131 wrote:

However, I don't really know if it's necessary… I'm pretty sure you could just do:

<((my number) / (2)) = ([floor v] of ((my number) / (2))::operators)>

I think you'd use ceil for negatives, but I'm not sure.
or just
<((input::grey) mod (2)) = [0]>//for even
<((input::grey) mod (2)) > [0]>//for odd
The topic creator did mention mod blocks though
Also this is my 28001st post LOL

Last edited by medians (Yesterday 13:41:38)

unnor
Scratcher
1000+ posts

ading new blocks to scratch

etywhs435gv wrote:

Hi Scratch Team,I have an idea that I think would make coding in Scratch a lot easier, especially for beginners. Right now, if you want to check if a number is odd or even, you have to use a tricky math formula with the mod block, which can be confusing for new users.I think it would be amazing if you added just one new green block to the Operators category. It would have a drop-down menu inside it, just like some other blocks in Scratch. When you click the rectangle menu, you can simply switch it between odd and even.This keeps the block palette clean since it is only one single block instead of two, but it would save beginners a lot of time when making toggles or game menus.Thank you for reading my idea!
The toggles part can be solved with this:
set [toggle v] to ((1) - (toggle))
Genche
Scratcher
27 posts

ading new blocks to scratch

HAL95131 wrote:

However, I don't really know if it's necessary… I'm pretty sure you could just do:

<((my number) / (2)) = ([floor v] of ((my number) / (2))::operators)>

I think you'd use ceil for negatives, but I'm not sure.

Or just
<((foo) / (2)) contains [.]?>
etywhs435gv
Scratcher
5 posts

ading new blocks to scratch

i know that there is many ways to track if a number is odd or even but i wanted scratch to add those 2 blocks

[] is [odd v]? :: boolean :: operators // Option 1
[] is [even v]? :: boolean :: operators // Option 2


so that coding becomes easier and faster

Last edited by etywhs435gv (Yesterday 16:50:00)

USE3MAIN
Scratcher
4 posts

ading new blocks to scratch

HAL95131 wrote:

However, I don't really know if it's necessary… I'm pretty sure you could just do:

<((my number) / (2)) = ([floor v] of ((my number) / (2))::operators)>

I think you'd use ceil for negatives, but I'm not sure.
Quite nice yet I think using the if prime, odd, even or consecutive is a good idea but again, it's not for simple people and it will be quietly used
RemixChainsContinues
New Scratcher
1 post

ading new blocks to scratch


USE3MAIN wrote:

HAL95131 wrote:

However, I don't really know if it's necessary… I'm pretty sure you could just do:

<((my number) / (2)) = ([floor v] of ((my number) / (2))::operators)>

I think you'd use ceil for negatives, but I'm not sure.
Quite nice yet I think using the if prime, odd, even or consecutive is a good idea but again, it's not for simple people and it will be quietly used
It Is For Simple People, Look!
when stop sign clicked 
say [:)] for (2) secs

Last edited by RemixChainsContinues (Yesterday 17:03:31)

Powered by DjangoBB