This script ignores the if statement and automatically sends the command after it even when if statement is false.
The above is obviously the whole trigger.
I would actually like for this script to Send ("say Fail") if name does not equal match but am not sure if I should use "else" or not.
<triggers>
<trigger
enabled="y"
match="* say*, "* ok*""
send_to="12"
sequence="100"
>
<send>local name = %1
local match = %3
if name == match then
Send ("say Pass")
end -- if
</send>
</trigger>
</triggers>
The above is obviously the whole trigger.
local name = %1
local match = %3
if name == match then
Send ("say Pass")
end -- if
I would actually like for this script to Send ("say Fail") if name does not equal match but am not sure if I should use "else" or not.