I have created 2 lists using the "STATS" menu.
The data are as follows:
List 1 - 14.8, 8.91, 5.57
List 2 - 0.168, 0.156, 0.143
I can retrieve the value using command such as List 1 and List 2 , etc.
Now I have the following routine which reads as follows:
"Cable size="?->C
1.5 => 1->X
2.5 => 2->X
4 => 3->X
"Resistance of this cable=":List 1
"Reactance of this cable=":List 2
Problem is that the List 1 in the above routine will always returned List 1 no matter what.
Ideally, if I input 1.5 as value C, I would like the output as follows:
"Resistance of this cable=":14.8
"Reactance of this cable=":0.168
And if I input 2.5 as value C, the output should be:
"Resistance of this cable=":8.91
"Reactance of this cable=":0.156
What did I do wrong? Please help.
Thanks
Question About Using Lists
Started by
josephlo
, Apr 12 2008 03:18 PM
2 replies to this topic
#1
Posted 12 April 2008 - 03:18 PM
#2
Posted 12 April 2008 - 06:42 PM
The instruction ⇒?runs a second instruction if a?condition?is?right?(eg:?A≠1⇒3→X?means?:?if?A?is?not?equal?to?1,?then?put?3?in?X)"Cable size"?→C
1.5⇒1→X
2.5⇒2→X
4⇒3→X
You must do like this :
"Cable size"?→C C=1.5⇒1→X C=2.5⇒2→X C=4⇒3→X
#3
Posted 13 April 2008 - 02:41 AM
Works great! Thanks
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users