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

Checks if any value is true. 📰 📘

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


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

boolean.Or(true, false)
// true

boolean.Or(false, false)
// false

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

boolean.Or4(false, false, false, false)
// false


References

Clone this wiki locally