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

Checks if all values are true. 📰 📘

Similar: And, Nand.
Similar: And, Or, Not, Xor.


And[n](a, b, ...)
// a: 1st boolean
// b: 2nd boolean
import (
	boolean "github.com/golangf/extra-boolean"
)

boolean.And(true, true)
// true

boolean.And(true, false)
// false

boolean.And4(true, true, true, true)
// true

boolean.And4(true, false, true, true)
// false


References

Clone this wiki locally