How much use if statement in an event? - 26/09/15 03:19 PM
I have a script like this:
Thus, have limit to the number of "elseif" allowed to use?
Although it still works, but I think the syntax is not correct.
Please help me to present a more accurate script.
Thank you.
Code:
on *:TEXT:*:#Mychan: { if (*atext* iswm $1-) { msg $chan text No 1 } elseif (*btext* iswm $1-) { msg $chan text No 2 } elseif (*ctext* iswm $1-) { msg $chan text No 3 } elseif (*dtext* iswm $1-) { msg $chan text No 4 } ... ... ... elseif (*ztext* iswm $1-) { msg $chan text No 99 } }
Thus, have limit to the number of "elseif" allowed to use?
Although it still works, but I think the syntax is not correct.
Please help me to present a more accurate script.
Thank you.