|
nostra Wanderer
Joined: 23 May 2001 Posts: 68 Location: Sweden
|
Posted: Fri Sep 05, 2003 8:44 pm
Extracting "2nd" value from a record_variable_list |
Hello everyone,
I'm about to produce a very delicate script but I'm on stuck on the "record_variable" list manipulation:
WHAT I'VE GOT SO FAR:
Zmud output: Gandalf the Elder is here.
#TR {{@record_variable_list1}} {kill "Field2"}
QUESTION:
Well, how do I actually write a trigger that:
1) fires on the Field1 of the "record_variable_list value" [in this case "Gandalf the Elder"]
2) and returns the second value (Field2) of the "record_variable_list value" [in this case "Gandalf"] [?]
Record_variable_list1 contain:
Field1 | Field2
Gandalf the Elder | Gandalf
A finger of Snakey | Snakey
Old dwarve | Dwarve |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Sep 05, 2003 9:58 pm |
A better method would be to use the full name as the key.
#ADDK record_variable_list1 {Gandalf the Elder} {Gandalf}
#ADDK record_variable_list1 {A finger of Snakey} {Snakey}
#ADDK record_variable_list1 {Old dwarve} {Dwarve}
#TR {({@record_variable_list1})} {kill %db( @record_variable_list1, %1)} |
|
|
|
|
|