Loop until same labels are in lists.fsm
Hello there,
Sorry I'm asking a 2nd question in less then 24hours but I am again stuck. Hopefully this will be the last challenge for my model...
I generate a Token on the "Left" that has 2 Labels:
A = 3
B = 2
I want to loop that Token on the "Left" until:
=> There is 1 token with Label A=3 in the list in the "Centre"
AND
=> There is 1 token with Label B=2 in the list in the "Right"
So far, the best result I have is using a Decide and a delay to loop the token back.
But this process makes my simulation very slow and is obviously not the best way to do it.
I tried to use WaitForEvent but I only managed to read the number of tokens in the list, I can't manage to match it with the label of token in the WaitForEvent.
Any idea please shout.