fun withExperiment(context: Context, descriptor: ExperimentDescriptor, block: (Experiment) -> Unit): Unit (source)
Performs an action if the user is part of the specified experiment
descriptor - descriptor of the experiment to check
block - block of code to be executed if the user is part of the experiment