question

Sri avatar image
0 Likes"
Sri asked Sri commented

IF condition

image.jpgHello.

There are three activities A,B,C. Using an IF condition, if its true, it has to perform activity A and when false, it has to perform both activities B and C simultaneously. Is this possible to code using FlexScript?

I can't use split here since the flow already has a split in the beginning. So, if I use split here again, the splitID is replaced with a new splitID which doesn't make it feasible for joining it in the end. Hence, I wanted to check if coding it directly using "IF" is possible?



FlexSim 22.2.0
splitdecide activityif condition
image.jpg (6.4 MiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Logan Gold avatar image Logan Gold ♦♦ commented ·

Hi @Sri, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·
Sri avatar image Sri Logan Gold ♦♦ commented ·
Hey Logan. Yes, it was helpful. Thank you.
0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Sri commented

"splitID" is just the default name given to the label that identifies which tokens belong together. You can change it to something different and use as many nested split activities as you want, as long as each Split/Join pair has unique label name for the ID.

1727072252537.png


1727072252537.png (10.4 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Sri avatar image Sri commented ·
Hello Felix,

Thank you for your answer. It works now!

0 Likes 0 ·