Merge pull request #439 from almas1992/patch-1

Update condition.go
This commit is contained in:
Max 2023-06-12 16:17:21 +08:00 committed by GitHub
commit 9792f5f122
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@ var Computes = map[string]ComputeFunc{
return left == right
},
">": func(left interface{}, right interface{}) bool {
return any.Of(left).CFloat64() == any.Of(right).CFloat64()
return any.Of(left).CFloat64() > any.Of(right).CFloat64()
},
">=": func(left interface{}, right interface{}) bool {
return any.Of(left).CFloat64() >= any.Of(right).CFloat64()