What I would do in this exact case as long as you're trying to test to see if the variable exists...
<?php
if (!$amount or !$testcode) {
$amount = 9700; // need semicolon
$testcode = "none"; // need semicolon
echo($amount);
echo($testcode);
}; // should use semicolon
?>
Hope that helps.
Mark