rule

CloudBees platform

In feature management, a rule in a flag’s configuration defines how the flag behaves under specific conditions.

Each rule can include one or more conditions, and can be evaluated using AND or OR logic, to determine which variation is served to users.

For example, to enable a feature for beta users on version 3.0.1 or higher, you could create a rule with an AND operator and the following conditions:

  • userGroup equals beta-users

  • appVersion is greater than or equal to 3.0.1

If both conditions are met, the rule returns true. If not, the next rule (or the default flag value) is applied.