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

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

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


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

Boolean.xnor(true, true);
// true

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

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

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


References

Clone this wiki locally