question

Mason W avatar image
0 Likes"
Mason W asked Logan Gold answered

Decide Activity with Model Time

Hi all,

I'm looking to create a conditional decide activity based off the model time. For example, if "Model Time" > 100 then route to connector 1. How would I do this? Or if there's a simpler way to accomplish this please let me know.

Thanks

FlexSim 19.0.0
decidemodel time
5 |100000

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

1 Answer

Logan Gold avatar image
1 Like"
Logan Gold answered

Using your example, you could use the Conditional Decide option in the Decide activity where the Condition field would be:

Model.time > 100

The True field would be 1 and the False field would be whatever connector you want the tokens to go through if the model time is less than or equal to 100.

This works well for this one condition - whether or not the model time is greater than 100. But if you're wanting to do this for more ranges of time, then you'll probably need to do something else. You could always do multiple Decide activities one right after the other, but there is probably a better solution depending on what you're wanting to do.

5 |100000

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