From 9f292465eb52241795dd7a4ca33daef2a27e7fcb Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Thu, 10 Mar 2022 10:56:59 +0100 Subject: [PATCH] docs: document how to get SEMVER_GTE/LTE functionality --- website/docs/advanced/strategy-constraints.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/website/docs/advanced/strategy-constraints.md b/website/docs/advanced/strategy-constraints.md index 8c42ad4a96..d15fd5250b 100644 --- a/website/docs/advanced/strategy-constraints.md +++ b/website/docs/advanced/strategy-constraints.md @@ -150,6 +150,15 @@ SemVer operators only support single values. | `SEMVER_GT` | **strictly greater than** the provided value | | `SEMVER_LT` | **strictly less than** the provided value | +Additionally, you can use negation to get _less than or equal to_ and _greater than or equal to_ functionality: + +| Effect | How | `true` if `` is ... | +|--------------------------|--------------------|-------------------------------------------------| +| Greater than or equal to | Negate `SEMVER_LT` | **greater than or equal to** the provided value | +| Less than or equal to | Negate `SEMVER_GT` | **less than or equal to** the provided value | + +"Not less than 2.0.0" _is the same as_ "greater than or equal to 2.0.0". The same applies for _less than or equal_: "Not greater than 1.9.5." _is the same as_ "less than or equal to 1.9.5". + ## Interacting with strategy constraints in the client SDKs {#sdks} :::note