Type Alias IndicatorInputCondition

IndicatorInputCondition:
    | {
        is: | IndicatorInputConditionValue
        | readonly IndicatorInputConditionValue[];
        key: string;
    }
    | {
        isNot: | IndicatorInputConditionValue
        | readonly IndicatorInputConditionValue[];
        key: string;
    }
    | { all: readonly IndicatorInputCondition[] }
    | { any: readonly IndicatorInputCondition[] }

A test over a study's current settings, read by a settings form for activeWhen and visibleWhen.

is holds when the setting under key equals the value, or one of the values when it is a list; isNot is its negation. all holds when every nested condition does and any when at least one does, so all of nothing holds and any of nothing does not. Values compare strictly: the number 5 is not the text '5'. It is data rather than a callback so a descriptor that a compiler emits, or one saved as JSON, can carry it.