mirror of
https://github.com/hanzoai/expr.git
synced 2026-09-24 16:58:58 +00:00
Support chzained comparisonc1 < 2 < 3 (#581)
This commit is contained in:
@@ -54,3 +54,7 @@ var Binary = map[string]Operator{
|
||||
"^": {100, Right},
|
||||
"??": {500, Left},
|
||||
}
|
||||
|
||||
func IsComparison(op string) bool {
|
||||
return op == "<" || op == ">" || op == ">=" || op == "<="
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user