|
Solaras Wanderer
Joined: 11 Mar 2002 Posts: 93
|
Posted: Sun May 29, 2005 10:31 pm
%var and %ismember |
I am trying to alter an alias I use to not only check if I am afflicted with things and count how many, but to only check if I am afflicted with this in a certain list.
Code: |
#VARIABLE affs ""
#LOOPDB @Afflictions {#IF (%val and %ismember(%i.1 @CureTheseOnly)) {#ADD Affs 1}}
#ALARM +0.5 {
#IF (@affs>=3) {
cureunknown
#ECHO %cr%ansi( 384)Curing random affliction
}
} |
Unfortunately this doesn't seem to work. Anyone out there know of a way I could do this? |
|
|
|
Solaras Wanderer
Joined: 11 Mar 2002 Posts: 93
|
Posted: Sun May 29, 2005 10:32 pm |
And of course the moment I hit the post button I realise the solution to the problem.
%i.1 should = %key |
|
|
|
|
|