on master help sign in
modding by 2 checks if a number is even
b837b45syzygyzer
tutorials/hoon/conditionals.md+1−1
@@ -57,7 +57,7 @@ The last boolean test we have is
57```hoon
57```hoon
58 =(0 (mod n 2))
58 =(0 (mod n 2))
59```
59```
60−This checks to see if `0` is equal to `(mod n 2)` and produces `%.y` if `n` is even and `%.n` if `n` is odd.
60+This checks to see if `0` is equal to `(mod n 2)` - in other words, checking if `n` is even. It produces `%.y` if `n` is even and `%.n` if `n` is odd.
61
61
62It is good practice in Hoon to put "lighter" lines at the top and "heavier" lines at the bottom, which is why we have put `=(0 (mod n 2))` last in the list of conditionals.
62It is good practice in Hoon to put "lighter" lines at the top and "heavier" lines at the bottom, which is why we have put `=(0 (mod n 2))` last in the list of conditionals.
63
63