[TF] variable help
Brought to you by:
kenkeys
|
From: johans at stack.nl (J. v. Selst) - 2003-05-21 10:56:03
|
Foo Bar wrote:
> The following looks like it should work, but it doesn't.
> /def fart = /set farthammer=%1
> /def -mregexp -t'%{farthammer} farts! Peeeeeeewwwwwwww!!!!' fart1 =\
> /echo FART%;\
> smack %{farthammer}
%{farthammer} is expanded when the fart1 macro is defined - not when it
%is triggered. You will want to expand it after calling /fart. Like:
/def fart = \
/set farthammer=%1%;\
/def -mregexp -t'%{farthammer} farts! Peeeeeeewwwwwwww!!!!' fart1 =\
/echo FART%%;\
smack %{farthammer}
Ciao,
Johan
|