Skip to content
Subhajit Sahu edited this page Mar 24, 2021 · 10 revisions

Checks if odd no. of values are true. 📰 📘

Similar: xor, xnor.
Similar: and, or, not, xor.


xor[n] a b ...
-- a: 1st boolean
-- b: 2nd boolean
import Boolean exposing (..)

xor True False
-- True

xor True True
-- False

xor4 True True True False
-- True

xor4 True True True True
-- False


References

Clone this wiki locally