This is probably silly. But which is faster. Checking, then setting if it needs to be. Or just setting the value to what it needs to be. See following code examples.
PHP Code:
for(new i = 1; i <= g_maxClients; i++)
blockList[i][id] = false // Unblock the client, if left blocked
or
PHP Code:
or(new i = 1; i <= g_maxClients; i++)
{
if(blockList[i][id])
blockList[i][id] = false // Unblock the client, if left blocked
}
My guess is the first, but i'm also curious to know for sure.
It should also be noted that it is most likely to be false anyway.
__________________