Just checking if i get it right.
Accoding to
this V1 would be more optimised than V2?
V1
PHP Code:
new team = get_user_team(id)
switch(g_SpecDay)
{
case 3: return PLUGIN_HANDLED
case 4:
{
if(team == 1)
return PLUGIN_HANDLED
}
case 2, 7:
{
if(team == 2)
return PLUGIN_HANDLED
}
}
V2
PHP Code:
if(g_SpecDay == 3)
{
return PLUGIN_HANDLED
}
else if(g_SpecDay == 4 && get_user_team(id) == 1)
{
return PLUGIN_HANDLED
}
else if((g_SpecDay == 2 || g_SpecDay == 7) && get_user_team(id) == 2)
{
return PLUGIN_HANDLED
}