Paraloop - which branch are you on? #522
Quali-Community
started this conversation in
Useful Tips & Guides
Replies: 1 comment
-
Great article, thanks! undefined (Quali) - 10/18/2012 02:21 AM
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using a paraloop, or a parallel flow, you sometime need an identifier to the branch that is being executed.
However, using the module variable - StartedBranches - will not show you the proper value in many cases.
See example:
You can see that all 3 parallel branches has the same StartedBranch value (3).
The good news, is that you can accomplish that task using a different function - "branch"
Branch is designed to give the current Parallel or Paraloop branch that is being executed. You can find the function under the "TestShell" Category in a MatShell command window.
You can, of course, use it in a message box (or anywhere else) as in this example:
Notice that all branches were executed the same time, however each is having a different value for "Branch" function.
Attachments:
(tal.a) - 10/07/2012 07:43 AM
· 2437 ·
Beta Was this translation helpful? Give feedback.
All reactions