tencent cloud

Feedback

Continue

Last updated: 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.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support