And adds more expressions to the group.
(andConds ...LogicalExpr)
| 32 | |
| 33 | // And adds more expressions to the group. |
| 34 | func (a *AndExpr) And(andConds ...LogicalExpr) *AndExpr { |
| 35 | var fn func(*[]LogicalExpr) error |
| 36 | if len(andConds) > 0 { |
| 37 | fn = func(in *[]LogicalExpr) error { |
| 38 | *in = append(*in, andConds...) |
| 39 | return nil |
| 40 | } |
| 41 | } |
| 42 | return &AndExpr{a.LogicalExprGroup.Frame(fn)} |
| 43 | } |
| 44 | |
| 45 | // Empty returns false if the expressions has zero conditions. |
| 46 | func (a *AndExpr) Empty() bool { |