I want to use a waituntil statement but be able to ignore it and continue regardless if it is fulfilled or not when it have waited for a certain time.
So I had an idea to use something like this
waituntil (Buffer.numMu > 0 and Station.occupied = false) or timer = 0
But I can't figure out a way to create a functional timer.
Another thought I had was something like this:
var timer := 10:00 var stopTime := eventcontroller.simtime + timer waituntil (Buffer.numMu > 0 and Station.occupied = false) or eventcontroller.simtime > stoptime
But you can't watch the eventcontroller, so this doesn't work.
Any other ideas?
freelance simulation specialist
The value of the command "eventcontroller" was linked to the correct eventcontroller in my model. When I changed it to "root.eventcontroller" I still got the same value, but I did not get the error in my image above.
So this "root." solved the issue somehow. Thanks for the help!
juste in case you don't see that
waituntil condition [prio number] [wait timespan:time] stopuntil condition [prio number] [wait timespan:time]
waituntil have a new param named "wait" to waituntil a condition or a time.