|
nostra Wanderer
Joined: 23 May 2001 Posts: 68 Location: Sweden
|
Posted: Thu Aug 21, 2003 4:22 pm
%ismember question |
I just don't understand why this trigger refuse to work, someone please help me before I'm going insane [}:)]
Problem:
My %ismember trigger only fires on a stringlist but not on a record variable list.
Example:
Pattern: (%w) is here
Trigger: %ismember( %2, @temp_list)
@temp_list (as a stringlist)
name1
name2
name3
If I receive mud output: name1 is here the trigger fires
@temp_list (as a record variable)
name1 location1
name2 location1
name3 location4
The trigger will NOT fire (same mud output).
Any ideas why[?] *sigh* |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Aug 21, 2003 5:40 pm |
%ismember is a list function. It works with list-variables because they are lists. It doesn't work with record-variables, because they aren't lists.
%iskey is a database (record) function. It works with record-variables because they are records. It doesn't work with list-variables, because they aren't records.
Use the appropriate function. |
|
|
|
|
|