Is () even: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Blocks|block_type=Boolean|category=Operators Expansion|block_img=<gallery> |
|||
Block 6 5 2023-4 33 27 PM.png|Block |
|||
⚫ | |||
Block 11 25 2023-9 55 27 AM.png|Workaround |
|||
</gallery>}} |
|||
⚫ | |||
==Workaround== |
==Workaround== |
||
Numbers are even when divisible by 2, so using the mod block with 2 as the second input and detecting if the result is 0 works the same. |
Numbers are even when divisible by 2, so using the mod block with 2 as the second input and detecting if the result is 0 works the same. |
||
[[Category:Boolean Blocks]] |
[[Category:Boolean Blocks]] |
||
[[Category:Operators Blocks]] |
[[Category:Operators Blocks/Expansion]] |
Latest revision as of 15:57, 25 November 2023
Is () even | |
---|---|
[[File:
| |
Block Type | Boolean |
Category / Extension | Operators Expansion |
The is even block is a boolean block and a operators block that detects if a number is an even number or an odd number. To get it, one must add the "Operators Expansion" extension.
Workaround
Numbers are even when divisible by 2, so using the mod block with 2 as the second input and detecting if the result is 0 works the same.