View source: R/feature_flag-percentage.R
is_enabled.percentage_feature_flag | R Documentation |
Checks if the given percentage flag is enabled
## S3 method for class 'percentage_feature_flag'
is_enabled(feature_flag)
feature_flag |
flag to be checked whether it is enabled |
TRUE if the feature flag is enabled.
{
enabled_flag <- create_percentage_feature_flag(1)
if (is_enabled(enabled_flag)) {
print("The flag is enabled!")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.