però mi sa che nn si puo fare xkè ho gia degli if che mi costruiscono la mia stringa

$stringa_if = '( (isset($_SESSION[UTENTE_id])) && ';

if($AUTORIZZAZIONE_1 == 'checked')
$stringa_if.= '($_SESSION[UTENTE_livello] == 1) && ';
if($AUTORIZZAZIONE_2 == 'checked')
$stringa_if.= '($_SESSION[UTENTE_livello] == 2) && ';
if($AUTORIZZAZIONE_3 == 'checked')
$stringa_if.= '($_SESSION[UTENTE_livello] == 3) && ';
if($AUTORIZZAZIONE_4 == 'checked')
$stringa_if.= '($_SESSION[UTENTE_livello] == 4) && ';
if($AUTORIZZAZIONE_5 == 'checked')
$stringa_if.= '($_SESSION[UTENTE_livello] == 5) && ';
if($AUTORIZZAZIONE_6 == 'checked')
$stringa_if.= '($_SESSION[UTENTE_livello] == 6) && ';

$stringa_if.= '1 )';