tencent cloud

文档反馈

Continue

最后更新时间:2023-08-03 17:12:12

    Overview

    Like the Break component, Continue needs to be used together with the For Each or While component. It is used to jump out of the current loop and execute the next loop.

    Operation Configuration

    Connection description

    None.

    Parameter configuration

    None.

    Data preview

    None.

    Output

    The message output by the component is as detailed below:

    message Attribute Value
    payload
    • In the For Each component, after the Continue component is executed, payload will be the data to be traversed next time.
    • In the While component, after the Continue component is executed, payload will inherit the payload output by the component previous to Continue.
    error Null.
    attribute
    • In the For Each component, after the Continue component is executed, attribute will inherit the attribute output by the component previous to For Each.
    • In the While component, after the Continue component is executed, attribute will inherit the attribute output by the component previous to While.
    variable
    • In the For Each component, after the Continue component is executed, variable will inherit the variable output by the component previous to Continue.
    • In the While component, after the Continue component is executed, the variable will inherit the variable output by the component previous to Continue.

    Example

    In the following example, the For Each component is used to calculate the sum of all odd numbers in the list, and the Continue component is used to jump out of the loop for an even number.

    1. Add a For Each component and enter the set to be traversed [1,2,3,4,5].
    2. Add a Choice component and filter data on the When node.
    3. Add a Continue node on the When node.
    联系我们

    联系我们,为您的业务提供专属服务。

    技术支持

    如果你想寻求进一步的帮助,通过工单与我们进行联络。我们提供7x24的工单服务。

    7x24 电话支持