Could you please define exactly what it is you want to get as an
output and where you are to use that output?

If you just terminate the inner loop the outer loop will iterate and
thus restart the inner loop. The inner loop has it's conditions set to
stop but that just means that it will run just one iteration...so now
the outer loop runs continously, making the inner loop run one
iteration each time.

In this case you'll get multiple values out of the outer loop since it
is running multiple iterations. If all you wanted was one value, the
one from the last iteration of the inner loop the first time it was
called you'll need to terminate the outer loop at the same time as the
inner by wiring the stop of the inner to the conditional terminal of
the outer as well.

In short - try to figure out what you want and make sure the logic of
the code really fits that...

By the way; the use a a sequence is not necessary. If you want to
clear the array prior to running the loop  just wire the error output
of the property node to the left border of the outer while loop, that
way data flow ensures the right order of execution and the code
becomes easier to read (sequences is normally avoided where data flow
can be used instead, data flow should be the primary controller of
execution you use when writing G). The use of a property node for this
task is not the best option either (in this case you could use an
invoke node to reset the default value instead anyway) - use locals
for this (locals too are to be avoided though - if wiring can do the
job).

Reply via email to