getExperimentCondition

Get experiments condition

getExperimentCondition(context, site, target)

Arguments

context (string): Experiment belonging to context

site (string): Site (Old Experiment Point)

target (string)(Optional): Target (Old Experiment Id)

Returns

(Promise): Returns condition assigned site and target

Example

getExperimentCondition("math", "content", "add");
// Result of promise
/*
    {
        target: "add",
        site: "content",
        assignedCondition: {
            condition: "condition1";
        };
     }
*/

Last updated