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