@servicenow/sdk - v4.7.0
    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: (
            _params: DoInParallelParams,
            ..._blocks: ParallelBlockFunction[],
        ) => { type: "doinparallel" };
        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: (
            _params: TryCatchParams,
            config: TryCatchConfig,
        ) => TryCatchConfig;
        waitForADuration: (
            params: WaitForADurationParams,
        ) => WaitForADurationOutputs;
    } = FlowLogic

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

    Type Declaration