From 4bb2fa16520da3af1d928e0c221247b558e5dfa2 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Wed, 16 Mar 2022 10:16:49 +1100 Subject: [PATCH] Updated equals doc --- pkg/yqlib/doc/operators/equals.md | 4 +++- pkg/yqlib/doc/operators/headers/equals.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/yqlib/doc/operators/equals.md b/pkg/yqlib/doc/operators/equals.md index e15b6a27..d108c9f0 100644 --- a/pkg/yqlib/doc/operators/equals.md +++ b/pkg/yqlib/doc/operators/equals.md @@ -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. diff --git a/pkg/yqlib/doc/operators/headers/equals.md b/pkg/yqlib/doc/operators/headers/equals.md index 580563e4..de32f5f0 100644 --- a/pkg/yqlib/doc/operators/headers/equals.md +++ b/pkg/yqlib/doc/operators/headers/equals.md @@ -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.