I want to execute a command, depending on the value of a variable.
I probably am missing something here, as the following does not work:
Regardless wether the variable has the value yes or no, the command punch is not sent.
When I change the alias to:
Regardless wether the variable has the value yes or no, the command punch is sent.
What am I doing wrong? What am I missing?
I probably am missing something here, as the following does not work:
<alias
match="v_sslam"
enabled="y"
expand_variables="y"
group="specials"
send_to="12"
omit_from_output="y"
sequence="100"
>
<send>Note ("inside " .. "@myspecialname")
Send("slam")
Send("@myelbow")
Send("knee")
Send("headbutt")
if @punch_attack == 'yes' then
Send("punch")
end
Send("kick")
</send>
Regardless wether the variable has the value yes or no, the command punch is not sent.
When I change the alias to:
<alias
match="v_sslam"
enabled="y"
expand_variables="y"
group="specials"
send_to="12"
omit_from_output="y"
sequence="100"
>
<send>Note ("inside " .. "@myspecialname")
Send("slam")
Send("@myelbow")
Send("knee")
Send("headbutt")
if @punch_attack == yes then
Send("punch")
end
Send("kick")
</send>
Regardless wether the variable has the value yes or no, the command punch is sent.
What am I doing wrong? What am I missing?