Question about execution order & Sequence node

Yes and yes. That is the point of a sequence. You start with the first and do that one to completion before you move on to the nest one.

All sequences in all systems will do this as it is part of its definition.

It’s probably a basic question, but I’m still not sure how this works in BPs…

  1. Let’s say that we have Sequence node with 2 outputs. In the first output we have ForEach node with many elements. In second output we have ‘Hello’ Print String. Will the ‘Hello’ wait for the ForEach node completion before printing? Will it print only when this ForEach is Completed?
  2. Similar situation, but with functions. Function2 is connected immediately after Function1. In Function1 there is ForEach node with many elements. Will Function2 wait for Function1 ForEach loop completion?

I will be grateful for clearing this up :slight_smile:

Thanks! I was confused because it might be an execution sequence, but when it would be some kind of parallel computing, it would execute simultaneously. Parallel programming classes destroyed my brain, sorry :smiley:
+1

Quite of wrong it is not always waiting for the sequence 1 to complete.
If you add a delay in sequence 1, then sequence 2 will execute before the sequence 1 complete.

Have fun…

1 Like