mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-07 02:48:27 +08:00
Updated equals doc
This commit is contained in:
@@ -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.
|
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)
|
select(.a == .b)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The not equals `!=` operator returns `false` if the LHS is equal to the RHS.
|
||||||
|
|
||||||
{% hint style="warning" %}
|
{% hint style="warning" %}
|
||||||
Note that versions prior to 4.18 require the 'eval/e' command to be specified. 
|
Note that versions prior to 4.18 require the 'eval/e' command to be specified. 
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
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)
|
select(.a == .b)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The not equals `!=` operator returns `false` if the LHS is equal to the RHS.
|
||||||
|
|||||||
Reference in New Issue
Block a user