Skip to content

[Bug] In a double nested loop, the element value traversed by loop_2 cannot be obtained #1077

Description

@MOON309385

🙋 SDK Version

1.1.5-pre

📌 Layout

Free layout

💻 Environment

  • Operation System: (e.g. Windows 11)
  • Other:python后端

📝 Question Description

1、双重循环,loop_2中的任何节点均无法获取遍历中的元素,只能获取索引。
2、loop_1可以同时获取遍历中的元素和索引
3、在实际的业务应用中有获取loop_2中元素值的需求,例如需要二重循环遍历二维数组[[1,2,3],[4,5,6]],当【元素值=5】时退出循环。
Image

This text is auto-translated:

🙋 SDK Version

1.1.5-pre

📌 Layout

Free layout

💻 Environment

  • Operation System: (e.g. Windows 11)
  • Other: python backend

📝Question Description

  1. Double loop, any node in loop_2 cannot obtain the elements in the traversal, but can only obtain the index.
  2. loop_1 can obtain the elements and indexes in the traversal at the same time
  3. In actual business applications, there is a need to obtain the element value in loop_2. For example, it is necessary to traverse the two-dimensional array [[1,2,3],[4,5,6]] in a double loop, and exit the loop when [element value = 5].
Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions