this may not be best explanation but here goes.
PHP Code:
if( hasadmin1[id] ) {
execute command.... // if player hasadmin1 then command is done and others are ignored
}
else if( hasadmin2[ id ] ) {
execute command.... // if player does NOT have admin1 then this check is next....
}
else {
execute command... // if player does NOT have admin1 or admin2 then this command is executed.
}
if( hasadmin1[ id ] ) execute command....
if( hasadmin2[ id ] ) execute command....
// both of these checks will happen and if player has both admin1 and admin2 then both commands will execute .
__________________