sorted = true, length = 10 parameters represent.
That being said, in code, its much more powerful to directly check parameters and their values. It’s also simpler to reason about: rather than hard
coding in a particular value, your variable is dynamically evaluated by Statsig. In this way, parameters are the building blocks of your experiments when coding, rather than group names.
Example: Group Names vs Parameters
Hard coding experiment group names would be both very fragile and very limiting. Let’s see why. In code, if you tried to use experiment groups, your function might end up looking like this:- Its very fragile. If the group name in code does not match the name in the Statsig console, you won’t return the correct experience
- Its static. I can’t easily add another experiment group without changing the code. I cant add an “Unsorted long list” without a code change.