Updated equals doc

This commit is contained in:
Mike Farah 2022-03-16 10:16:49 +11:00
parent d27fb0ec78
commit 4bb2fa1652
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# Equals
# Equals / Not Equals
This is a boolean operator that will return `true` if the LHS is equal to the RHS and `false` otherwise.
@ -12,6 +12,8 @@ It is most often used with the select operator to find particular nodes:
select(.a == .b)
```
The not equals `!=` operator returns `false` if the LHS is equal to the RHS.
{% hint style="warning" %}
Note that versions prior to 4.18 require the 'eval/e' command to be specified. 

View File

@ -1,4 +1,4 @@
# Equals
# Equals / Not Equals
This is a boolean operator that will return `true` if the LHS is equal to the RHS and `false` otherwise.
@ -11,3 +11,5 @@ It is most often used with the select operator to find particular nodes:
```
select(.a == .b)
```
The not equals `!=` operator returns `false` if the LHS is equal to the RHS.