@servicenow/sdk - v4.13.3
    Preparing search index...
    flowLogic: {
        appendToFlowVariables: <
            T extends FlowVariableDefinition,
            V extends Record<string, unknown>,
            KV extends
                {
                    [K in string | number | symbol]?: V[K] extends E[]
                        ? string
                        | unknown[]
                        | E
                        | E[]
                        : never
                },
        >(
            definition: T,
            variables: V,
            values: KV,
        ) => { type: "appendflowvariables" };
        assignSubflowOutputs: <
            T extends FlowVariableDefinition,
            S extends Record<string, FlowValueType>,
        >(
            _definition: T,
            _variables: FlowSchemaType<S>,
            _values: {
                [K in string | number | symbol]?:
                    | string
                    | Exclude<FlowSchemaType<S>[K], null | undefined>
            },
        ) => { type: "assignsubflowoutputs" };
        doInParallel: <
            const Blocks extends
                readonly ParallelBlockFunction<ParallelBlockOutputs>[],
        >(
            _params: DoInParallelParams,
            ..._blocks: Blocks,
        ) => { type: "doinparallel" } & DoInParallelResult<Blocks>;
        doTheFollowing: (_params: DoTheFollowingParams, _body?: () => void) => void;
        else: (_params: FlowElseParams, _body: ConditionalBodyFunction) => void;
        elseIf: (_params: FlowLogicParams, _body: ConditionalBodyFunction) => void;
        endFlow: (endFlow: EndFlowType) => { type: "endflow" };
        exitLoop: <T extends ExitLoopType>(exitLoop: T) => { type: "exitloop" };
        forEach: <TArray>(
            _items: TArray | undefined,
            _id: WithID<{ annotation?: string }>,
            _body?: (item: ExtractArrayElement<TArray>) => void,
        ) => { type: "foreach" };
        if: (
            _params: FlowLogicParams,
            _body: ConditionalBodyFunction,
        ) => { type: "if" };
        setFlowVariables: <
            T extends FlowVariableDefinition,
            S extends Record<string, FlowValueType>,
        >(
            _definition: T,
            _variables: FlowSchemaType<S>,
            _values: {
                [K in string | number | symbol]?:
                    | string
                    | Exclude<FlowSchemaType<S>[K], null | undefined>
            },
        ) => { type: "setflowvariables" };
        skipIteration: <T extends SkipIterationType>(
            skipIteration: T,
        ) => { type: "skipiteration" };
        tryCatch: <
            const Try extends TryCatchArmOutputs,
            const Catch extends TryCatchArmOutputs,
        >(
            _params: TryCatchParams,
            config: TryCatchConfig<Try, Catch>,
        ) => { type: "trycatch" } & ArmOutputs<Try> & ArmOutputs<Catch>;
        until: (value: string) => string;
        waitForADuration: (
            params: WaitForADurationParams,
        ) => WaitForADurationOutputs;
    } = FlowLogic

    Control flow operators for branching, looping, and flow control (if, elseIf, else, forEach, doTheFollowing, waitForADuration, setFlowVariables, appendToFlowVariables, assignSubflowOutputs, endFlow, exitLoop, skipIteration).

    Type Declaration