Hi there,
I am trying to write a delay so the delay only takes place if there is something in the stock to delay.
I have a pulse train sending the data into the model and these are delayed by a fixed time before they go into the "In Maintenance Post Spares" box.
The delay statement that I'm having trouble with currently reads:
IF THEN ELSE( In Maintenance Post Spares>=1, DELAY FIXED( Spares from MS Delay, Delay Times, 0), 0)
Where "In Maintenance Post Spares" is my stock and "Spares from MS Delay" is my flow and "Delay Times" is the time I want to delay by.
The error message that I get is:
Only expressions separated by commas are valid in this context.
Is there an easier way to do this or am I doing something wrong? I have attched my model, it may help!
Any help would be much appreciated.
Thanks,
Gemma
Using a Fixed Delay in an If Then Else Statement
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
-
- Senior Member
- Posts: 1107
- Joined: Wed Mar 12, 2003 2:46 pm