Skip to content

How to model boolean features (no value) and is there a way to set groups of features ? #1871

Answered by dabeeeenster
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

It might be better to use Flag Values as opposed to booleans, then check for that value in your code when enabling feateures. So have a value for each feature, which is the minimum plan level that it is available at. E.g.

feat1: premium,
feat2: business,
feat3: freemium

Then set an Identity Trait for the plan the user is on.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Answer selected
Comment options

You must be logged in to vote
2 replies
@ghost
Comment options

@dabeeeenster
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #1870 on January 30, 2023 13:54.