code:
switch (Contact.Email)
{
case "xxx@yyy.zzz":
run(ChatWnd, Message);
break;
case "xxx2@yyy.zzz":
run(ChatWnd, Message);
break;
}
Cases fall through y'know:
code:
switch (Contact.Email)
{
case "xxx@yyy.zzz":
case "xxx2@yyy.zzz":
run(ChatWnd, Message);
break;
}
is equivalent.
Remember: there's no compiler to optimise scripts