Conditional / ExpressionThreshold ..

47 views
Skip to first unread message

sepp

unread,
May 4, 2024, 9:46:57 AMMay 4
to JaamSim Users Discussion Group
Dear All,
To build up a storage of 10 at the beginning and shut it down to 0 at the end when count reaches 100, I tried the following ExpressionThreshold / OpenCondition:
' this.count < 100 ? (  [Queue1].QueueLength > 10  ) : (  [Queue1].QueueLength = 0  ) '

What is wrong with the OpenCondition ? Can I use a conditional expression as open condition ?

Many thanks for your ideas and comments.
Best S.

Harry King

unread,
May 5, 2024, 12:29:29 AMMay 5
to JaamSim Users Discussion Group
You used '=' in the expression instead of '==' . It should be  [Queue1].QueueLength == 0.

Harry

sepp

unread,
May 5, 2024, 3:38:00 AMMay 5
to JaamSim Users Discussion Group
Many thanks ! Worked.
Reply all
Reply to author
Forward
0 new messages