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