gitlab.com/evatix-go/core@v1.3.55/conditional/BoolByOrder.go (about) 1 package conditional 2 3 // BoolByOrder returns the first boolean which is true 4 func BoolByOrder( 5 booleans ...bool, 6 ) bool { 7 for _, boolean := range booleans { 8 if boolean { 9 return true 10 } 11 } 12 13 return false 14 }