Description Usage Arguments Details Value Examples
Evaluates the provided expression if the feature flag is enabled.
1 | feature_if(feature_flag, expr)
|
feature_flag |
flag which defines whether the provided expression should be evaluated |
expr |
expression to evaluate when the feature_flag is enabled |
The passed expression is evaluated in the frame where feature_if
is called.
If the passed feature_flag
is enabled, than the result of the evaluation
of the passed expression is returned. Otherwise there is no return value.
1 2 3 4 5 6 7 | {
flag <- create_bool_feature_flag(TRUE)
feature_if(flag, {
2 + 7
})
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.