Value of variable from set time

Use this forum to post Vensim related questions.
Post Reply
mikdale
Member
Posts: 28
Joined: Thu Jun 11, 2009 2:51 am

Value of variable from set time

Post by mikdale »

Hi all

I am trying to find a way to get the value of a variable, say x, from a specific timestep, t = 10, and input that into the equation for another variable, say y such that

y = F(x(t=10))

I've thought of an inelegant way to do it by using a delay function and increasing the value of the delay time at each time step, but I'm sure there must be another (less bodge-job) way to do it but I can't figure it.

Cheers

Mik

[Edited on 1-26-2010 by mikdale]
Administrator
Super Administrator
Posts: 4838
Joined: Wed Mar 05, 2003 3:10 am

Post by Administrator »

Will "SAMPLE IF TRUE" do what you need?
mikdale
Member
Posts: 28
Joined: Thu Jun 11, 2009 2:51 am

Post by mikdale »

Maybe, I'll give it a go

Many thanks

Mik
mikdale
Member
Posts: 28
Joined: Thu Jun 11, 2009 2:51 am

Post by mikdale »

That worked.

Thank you, mysterious stranger...


...whoever you are!?! ;)
Post Reply