-
Notifications
You must be signed in to change notification settings - Fork 0
And
Subhajit Sahu edited this page Mar 24, 2021
·
2 revisions
Checks if all values are true. 📰 📘
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