Coda by Ian Macalinao
    Preparing search index...

    Interface ConditionalValueNode<TCondition, TValue, TIfTrue, TIfFalse>

    A branching contextual value. The condition resolves to a value at instruction time; that result selects between ifTrue and ifFalse.

    interface ConditionalValueNode<
        TCondition extends ConditionalValueCondition = ConditionalValueCondition,
        TValue extends ValueNode | undefined = ValueNode | undefined,
        TIfTrue extends
            InstructionInputValueNode | undefined =
            | InstructionInputValueNode
            | undefined,
        TIfFalse extends
            InstructionInputValueNode
            | undefined = InstructionInputValueNode | undefined,
    > {
        condition: TCondition;
        ifFalse?: TIfFalse;
        ifTrue?: TIfTrue;
        kind: "conditionalValueNode";
        value?: TValue;
    }

    Type Parameters

    Index
    condition: TCondition

    The value whose evaluation drives the branch.

    ifFalse?: TIfFalse

    The value used when the condition resolves falsy (or does not match value).

    ifTrue?: TIfTrue

    The value used when the condition resolves truthy (or matches value).

    kind: "conditionalValueNode"
    value?: TValue

    When present, the condition result is compared for equality against this value. Otherwise the result is treated as a boolean.