 |
mgoho Beginner
Joined: 22 Jun 2004 Posts: 17
|
Posted: Wed Aug 18, 2004 5:58 pm
Variables and String List |
#TRIGGER {Jehovah's Map of (*)} {#IF (%ismember( %1, @areas)) {} {#ADDITEM areas %1}
This is my trigger. When it sees Jehovah's Map of The Great Realms the "The Great Realms" obviously goes to %1 just fine. Yet when it does the check against the String List @areas and adds it, it only adds "The"...the first word of %1. Is there any way to get the entire string to be added (and also checked if the %ismember check)?
Many thanks in advance! |
|
|
 |
nexela Wizard

Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Wed Aug 18, 2004 7:02 pm |
Enclose it in quotes
#IF (%ismember( "%1", @areas)) {} {#ADDITEM areas "%1"} |
|
|
 |
mgoho Beginner
Joined: 22 Jun 2004 Posts: 17
|
Posted: Wed Aug 18, 2004 10:03 pm |
now my %1 = "The Great Realms (blank space)"
Is there any way to eliminate this extra white space? (I've already tried the $) |
|
|
 |
nexela Wizard

Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Wed Aug 18, 2004 10:36 pm |
#ADDITEM areas %trim("%1")
|
|
|
 |
|
|