| View previous topic :: View next topic |
| Author |
Message |
eraldo
Joined: 30 Jun 2009 Posts: 19
|
Posted: Mon Jul 06, 2009 7:04 pm Post subject: alias show remainder |
|
|
example:
#ALIAS {test} {#SHOWME %1 %2 c %0 }
Input: "test a b d e"
Output: "a b c a b c d e"
Desired Output: "a b c d e"
What syntax gives me %0 minus %1 and %2 ?
Greetings,
Eraldo |
|
| Back to top |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3274
|
Posted: Tue Jul 07, 2009 7:46 am Post subject: |
|
|
The following should do this:
#alias {test %1 %2 %3} {#showme %1 %2 c %0} |
|
| Back to top |
|
 |
eraldo
Joined: 30 Jun 2009 Posts: 19
|
Posted: Tue Jul 07, 2009 1:24 pm Post subject: not confirmed |
|
|
I get this:
Input: test a b d
Output: a b c a b d |
|
| Back to top |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3274
|
Posted: Tue Jul 07, 2009 1:29 pm Post subject: |
|
|
My mistake, correct alias is:
#alias {test %1 %2 %3} {#showme %1 %2 c %3} |
|
| Back to top |
|
 |
eraldo
Joined: 30 Jun 2009 Posts: 19
|
Posted: Wed Jul 08, 2009 11:15 am Post subject: |
|
|
that would not work for more than 3 arguments, right?
By the way... thank's for helping me.  |
|
| Back to top |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3274
|
Posted: Wed Jul 08, 2009 12:09 pm Post subject: |
|
|
No problem,
In this case %3 would hold all remaining arguments. |
|
| Back to top |
|
 |
|