Creating a conditional default requestor

I would like to have a conditional default requestor. I think I have the
line of pertinent code from path/to/rt2/WebRT/html/Ticket/Create.html

Basically I want to do this:

if ($QueueObj->Name == “BSD”) {
$req_mail = "";
} else {
$req_mail = $session{CurrentUser}->EmailAddress;

Yet for some reason this doesn’t work.

Should I be doing it this way or should I be looking to create a scrip?