Lookup selection IF THEN ELSE()

Use this forum to post Vensim related questions.
Post Reply
geo_curious
Senior Member
Posts: 142
Joined: Tue Mar 14, 2023 2:05 am
Vensim version: DSS

Lookup selection IF THEN ELSE()

Post by geo_curious »

Hi,
I have two lookup tables for fluid properties. I am trying to select between two fluids. Using the IF THEN ELSE() function, I am not allowed to select lookups. "Argument 2 to IF THEN ELSE can not be a Lookup."
What should I do instead of:
IF THEN ELSE(fluid=1, fluid1 lookup, fluid2 lookup)?
tomfid
Administrator
Posts: 4005
Joined: Wed May 24, 2006 4:54 am

Re: Lookup selection IF THEN ELSE()

Post by tomfid »

IF THEN ELSE(fluid=1, fluid1 lookup(input), fluid2 lookup(input))
Post Reply