|
zeiuszeppo Novice
Joined: 22 Nov 2001 Posts: 48 Location: Italy
|
Posted: Tue Apr 02, 2002 12:33 pm
lastinput vs lastcom |
hi guys, I'm trying to understand the
difference beetween %lastcom e %lastinput.
Can u help me? |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Apr 02, 2002 4:20 pm |
It is possible to put more than one command in the same line, for instance:
hop;skip;jump
%lastcom is the last command -- jump
%lastinput is the entire line -- hop;skip;jump
LightBulb
All scripts untested unless otherwise noted |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Wed Apr 03, 2002 12:29 am |
Another difference would be if you had an alias defined like:
#AL hop {skip}
Then when you type "hop":
lastinput="hop"
lastcom="skip"
Where it gets fuzzier is when you have triggers getting into the mix, in those cases lastcom will be whatever was the last line passed through the parser. |
|
|
|
|
|