Description Usage Arguments Value Examples
View source: R/feature_flag-bool.R
Checks if the given bool feature flag is enabled
1 2 | ## S3 method for class 'bool_feature_flag'
is_enabled(feature_flag)
|
feature_flag |
flag to be checked whether it is enabled |
TRUE if the feature flag is enabled.
1 2 3 4 5 6 7 | {
enabled_flag <- create_bool_feature_flag(TRUE)
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.