Skip to content

Commit

Permalink
Merge pull request #1428 from Unleash/docs/document-semver-gte-lte
Browse files Browse the repository at this point in the history
docs: document how to get SEMVER_GTE/LTE functionality
  • Loading branch information
thomasheartman committed Mar 10, 2022
2 parents b94f7bd + 9f29246 commit d28c046
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions website/docs/advanced/strategy-constraints.md
Expand Up @@ -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 `<context-field>` 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
Expand Down

0 comments on commit d28c046

Please sign in to comment.