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 fails — i.e. it does not match value or, without a value, does not exist.

    ifTrue?: TIfTrue

    The value used when the condition passes — i.e. it matches value or, without a value, exists.

    kind: "conditionalValueNode"
    value?: TValue

    When present, the condition result is compared for equality against this value. When omitted, the condition passes if the referenced account or argument exists in the current context, regardless of its value.