A simple conditional service time expression ..

24 views
Skip to first unread message

Stephan Eibl

unread,
Jul 18, 2025, 11:01:47 AMJul 18
to JaamSim Users Discussion Group
Dear All,
I tried to use a conditional service time for the process server based on the SimEntity name OpsTruck and ConTruck '[SimEntity].Name == "OpsTruck" ? 5.0[h] : 0.5[h]'
Is this the correct expression ?
Unfortunately, it uses for "both" SimEntity names the same service time of 0.5 [h]
Best and thanks for your comment.
Steve

 

Klaus Holstein

unread,
Jul 18, 2025, 11:15:44 AMJul 18
to jaamsi...@googlegroups.com
Hi Steve,
I think you need the following:
this.obj.name ==......
With "this.obj" you reference to the current SimEntity in the Server.
Best Regards,
Klaus
Mit freundlichen Grüßen,
Klaus Holstein
Reply all
Reply to author
Forward
0 new messages