Hi there.
I'm new to Vensim so I'm wondering if somebody could assist me wrt Subscripts. I've defined a subscript and placed a Box Variable in which I want to define the elements of the subscript as other Variables- i.e., I want the elements of the subscript to be variables - is this possible? I've tried doing this, but I keep getting error messages.
Previously, I've defined the subscript by constants - i.e., 1,2,3,4,5 which is fine but I can't define it as var1,var2,var3,var4,var5
Thanks for your help.
Nik
Subscript and Variables
-
- Senior Member
- Posts: 1107
- Joined: Wed Mar 12, 2003 2:46 pm
-
- Senior Member
- Posts: 1107
- Joined: Wed Mar 12, 2003 2:46 pm
Now I understand. You will need to write
graph[line1]=var1~~|
graph[line2]=var2~~|
graph[line3]=var3~~|
And so on (use the Add Eq button in the equation editor). Of course it may be easier to just make a custom graph.
[Edited on 2006-4-25 by bob@vensim.com]
graph[line1]=var1~~|
graph[line2]=var2~~|
graph[line3]=var3~~|
And so on (use the Add Eq button in the equation editor). Of course it may be easier to just make a custom graph.
[Edited on 2006-4-25 by bob@vensim.com]