File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
optimizely/decision/evaluator Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,10 @@ import (
24
24
)
25
25
26
26
const (
27
- // EXACT match type performs an equality comparison
28
27
exactMatchType = "exact"
28
+ existsMatchType = "exists"
29
+ ltMatchType = "lt"
30
+ gtMatchType = "gt"
29
31
)
30
32
31
33
// ConditionEvaluator evaluates a condition against the given user's attributes
@@ -50,6 +52,18 @@ func (c CustomAttributeConditionEvaluator) Evaluate(condition entities.Condition
50
52
matcher = matchers.ExactMatcher {
51
53
Condition : condition ,
52
54
}
55
+ case existsMatchType :
56
+ matcher = matchers.ExistsMatcher {
57
+ Condition : condition ,
58
+ }
59
+ case ltMatchType :
60
+ matcher = matchers.LtMatcher {
61
+ Condition : condition ,
62
+ }
63
+ case gtMatchType :
64
+ matcher = matchers.GtMatcher {
65
+ Condition : condition ,
66
+ }
53
67
}
54
68
55
69
result , err := matcher .Match (user )
You can’t perform that action at this time.
0 commit comments