create_percentage_feature_flag {featureflag} | R Documentation |
Creates an instance of a percentage feature flag with a specified chance of being enabled
Description
Creates an instance of a percentage feature flag with a specified chance of being enabled
Usage
create_percentage_feature_flag(percentage)
Arguments
percentage |
chance of being enabled e.g. 1 for always being enabled |
Value
feature flag object of the percentage type
Examples
{
always_enabled_flag <- create_percentage_feature_flag(percentage = 1)
randomly_enabled_flag <- create_percentage_feature_flag(percentage = 0.5)
}
[Package featureflag version 0.2.0 Index]