VARIANT
All functions > CORE > VARIANT
Returns a reference to a variant of the given feature with the given replacements in its dependencies.
Signatures
Returns: A variant feature with substituted dependencies
VARIANT(base: FEATURE, origin: ARRAY<FEATURE>, replacement: ARRAY<FEATURE>) → FEATURE sql
| Parameter | Type | Required | Description |
|---|---|---|---|
base | FEATURE | Yes | The base feature to create a variant of |
origin | ARRAY<FEATURE> | Yes | Array of features to be replaced |
replacement | ARRAY<FEATURE> | Yes | Array of replacement features |
Notes
- Creates a variant of a feature with dependency substitution
- Replaces specified origin features with replacement features
- Useful for A/B testing and feature experimentation
- Origin and replacement arrays must have matching length
- Enables creating alternate versions of features
- Part of the FeatureMesh core system
On this page