2022-03-17 03:08:08 +00:00
|
|
|
# Compare Operators
|
|
|
|
|
|
|
|
Comparison operators (`>`, `>=`, `<`, `<=`) can be used for comparing scalar values of the same time.
|
|
|
|
|
|
|
|
The following types are currently supported:
|
|
|
|
|
|
|
|
- numbers
|
|
|
|
- strings
|
|
|
|
- datetimes
|
|
|
|
|
|
|
|
## Related Operators
|
|
|
|
|
2022-03-29 00:08:50 +00:00
|
|
|
- equals / not equals (`==`, `!=`) operators [here](https://mikefarah.gitbook.io/yq/operators/equals)
|
|
|
|
- boolean operators (`and`, `or`, `any` etc) [here](https://mikefarah.gitbook.io/yq/operators/boolean-operators)
|
|
|
|
- select operator [here](https://mikefarah.gitbook.io/yq/operators/select)
|