|
Legion Beginner
Joined: 09 Dec 2000 Posts: 22 Location: USA
|
Posted: Sat Apr 24, 2004 2:01 am
Word, or String seperation. |
I'm currently working on a lil alias which basically follows the following format:
do %1 %2
where %1 will be a set of letters or numbers i.e. abcd or 1234 and %2 is the target.
%1 could be either a, b, c, d, ab, ac, ad, ba, bc, bd, ca, cb, cd, da, db, dc, or any combination of single, double, triple, and quadruple letter combinations of a, b, c and d.
what i'm trying to do is set up a system which will take the the %1 argument, check for the number of letters, each letter is seperated, then execute the alias pertaining to the letter(s) (in chronological order). for example:
do ad someone
will do (a alias);(d alias) on 'someone'.
do bcd someone
will do (b alias);c alias);(d alias) on 'someone'.
what i'm not finding is how to take that %1, have it checked for the number of letters, then each letter seperated, then each letter alias set off. Once i figure that out i'm sure i'll figure out how to make it work each alias on %2.
Any suggestions?
Thank You |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sat Apr 24, 2004 6:45 am |
#HELP %pos
#IF (%pos(a,%1)) {do a alias %2}
#IF (%pos(b,%1)) {do b alias %2}
....
...
... |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|