Iterate thru lists with While Loop in Code Block

Hello,

Can some one please tell me what is wrong with this loop? It appears like it’s not going thru the list iterations at all if I get the return value of i to be 0.

i suggest to assign Imperative to a variable like

val=[Imperative]

also the return must be written before the last bracket “}”
the after the bracket write the output
val

2 Likes

Wow thank you so much! I got the increment to work! However, for some reasons I still can’t get and set parameter within the inner while loop. But maybe that’s another problem.

1 Like