Is () even: Difference between revisions

From PenguinMod Wiki
Jump to navigation Jump to search
Content added Content deleted
(Also, is this a real block? Can't see it)
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Blocks|block_type=Boolean|category=Operators Expansion|block_img=<gallery>
[[File:Block 6 5 2023-4 33 27 PM.png|thumb|302x302px]]
Block 6 5 2023-4 33 27 PM.png|Block
The is even block is a boolean block that detects if a number is an even number or an odd number.
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.
==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]]
{{Delete}}

Latest revision as of 15:57, 25 November 2023

Is () even
...
[[File:|200px]]
Caption
Block Type Boolean
Category / Extension Operators Expansion
Status Who tf uses status

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.