is_enabled.bool_feature_flag {featureflag} | R Documentation |
Checks if the given bool feature flag is enabled
Description
Checks if the given bool feature flag is enabled
Usage
## S3 method for class 'bool_feature_flag'
is_enabled(feature_flag)
Arguments
feature_flag |
flag to be checked whether it is enabled |
Value
TRUE if the feature flag is enabled.
Examples
{
enabled_flag <- create_bool_feature_flag(TRUE)
if (is_enabled(enabled_flag)) {
print("The flag is enabled!")
}
}
[Package featureflag version 0.1.0 Index]