新增结点数组下标

This commit is contained in:
boyce
2025-11-10 10:33:07 +08:00
parent b78d9721f2
commit 4cb6882a1a

View File

@@ -117,7 +117,8 @@ func (em *ForeachIntArray) Exec() (int, error) {
} }
for i := range array { for i := range array {
em.ExecContext.OutputPorts[2].SetInt(array[i].IntVal) em.ExecContext.OutputPorts[2].SetInt(Port_Int(i))
em.ExecContext.OutputPorts[3].SetInt(array[i].IntVal)
err := em.DoNext(0) err := em.DoNext(0)
if err != nil { if err != nil {
return -1, err return -1, err