mirror of
https://gitee.com/mirrors_adrian-thurston/yq.git
synced 2026-01-15 07:53:35 +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.
|
||||
|
||||
@@ -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. 
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user