Apologies if this has already been asked a lot...
What I want to do is have a script that can call one of two aliases depending on the value of a variable.
I thought of using something like this;
if <variable> == 1 then
Send("do something @target")
else
Send("do something else @target")
end
However, doing this doesn't expand the variable (in this case target) like in a normal Mush alias. How would I do this, so it refers to the variable within the Send command?
(in lua, incidently)
Thanks
What I want to do is have a script that can call one of two aliases depending on the value of a variable.
I thought of using something like this;
if <variable> == 1 then
Send("do something @target")
else
Send("do something else @target")
end
However, doing this doesn't expand the variable (in this case target) like in a normal Mush alias. How would I do this, so it refers to the variable within the Send command?
(in lua, incidently)
Thanks