PHP ISSet et test

<?php
$action1='action1';
$action2='action2';
$test=null;
if (isset($test) && $test=='test') 
echo $action1;
else 
echo $action2;
cadot.eu