Is () even: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
No edit summary |
||
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>}} |
|||
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. |
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== |
==Workaround== |
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.