Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate a manual 'break' into the iterate node #12217

Open
5 tasks done
Charlieyurong opened this issue Dec 30, 2024 · 4 comments
Open
5 tasks done

Integrate a manual 'break' into the iterate node #12217

Charlieyurong opened this issue Dec 30, 2024 · 4 comments
Labels
💪 enhancement New feature or request

Comments

@Charlieyurong
Copy link

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

Currently, the iterate node cannot be terminated midway, and there is a desire to forcibly terminate the iteration under certain conditions

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
@dosubot dosubot bot added the 💪 enhancement New feature or request label Dec 30, 2024
@laipz8200
Copy link
Member

Hi, I've noticed that you are interested in contributing to this feature. Could you please share your plan?

@Charlieyurong
Copy link
Author

I have two ideas:
1、When executing iterations serially, is it possible to add a code node after any node, where the dependency judgment condition can force an exit from the current iteration using keywords like break?

2、The execution of loop bodies is also a common scenario, such as A->B->C->(D or jump back to A), where keywords can be used in code nodes to forcibly control the flow, like jumping back or exiting the loop.

@laipz8200
Copy link
Member

is it possible to add a code node after any node, where the dependency judgment condition can force an exit from the current iteration using keywords like break?

We actually send the content in the Code node to the sandbox for execution, so this way cannot be implemented.

The execution of loop bodies is also a common scenario, such as A->B->C->(D or jump back to A), where keywords can be used in code nodes to forcibly control the flow, like jumping back or exiting the loop.

We planned a Loop node with the break function, maybe we could convert this issue to a feature request.

@Charlieyurong
Copy link
Author

thxs for your reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants