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.


Boolean.xor(a, b, ...)
// a: 1st boolean
// b: 2nd boolean
import io.github.javaf.*;

Boolean.xor(true, false);
// true

Boolean.xor(true, true);
// false

Boolean.xor(true, true, true, false);
// true

Boolean.xor(true, true, true, true);
// false


References

Clone this wiki locally