Making the "then" if If Then Else permanent

Use this forum to post Vensim related questions.
Post Reply
bhoule
Junior Member
Posts: 2
Joined: Sun Nov 15, 2009 3:32 am

Making the "then" if If Then Else permanent

Post by bhoule »

Hi everyone,

I'm having a bit of trouble with a model with a threshold effect. I want it to return a 0 until a threshold is passed, and then return a 1. Currently I have that as
IF THEN ELSE (Threshold difference<0,0,1)

However, what happens is that once the threshold difference goes back to zero or below, the 0 is reinputted into the variable instead of the 1. Is there a way to structure a statement so that once the threshold is crossed it permanently becomes a 1?

Many thanks,
Brian
Administrator
Super Administrator
Posts: 4838
Joined: Wed Mar 05, 2003 3:10 am

Post by Administrator »

Will SAMPLE IF TRUE do the job?

Tony.
LAUJJL
Senior Member
Posts: 1477
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

permanent if the else

Post by LAUJJL »

Hi

Here is joined a model that does the same thing that the sample if true without using it and is eventually easier to understand.
Regards.
JJ
Attachments
threshold.mdl
(2.23 KiB) Downloaded 221 times
bhoule
Junior Member
Posts: 2
Joined: Sun Nov 15, 2009 3:32 am

Post by bhoule »

Many thanks to both of you for your prompt and helpful replies, I think both of these should do the trick!

Best,
Brian
Post Reply