Okay i thought i could figure it out, i was wrong.
The HTML Output in this line of code is what i wish to hide if the variable is passed:
$TOKENS = array();
$TOKENS['edit_button']['token'] = "__EDIT_BUTTON__";
$TOKENS['edit_button']['html'] = '
<form action="" method="post">
<input type="button" onclick="document.location=\'' . $_SERVER['PHP_SELF'] . '?action_edit=1\';return false;" name="action_edit" value="Edit This Page"
style="border:1px solid; border-color:#666666 #333333 #333333 #666666; font:bold small arial, verdana,sans-serif; color:#000000; background-color: #b7bdc7; text-decoration:none; margin:1px; padding: 3px; " />
</form>';
Ok so i want to only diplay the html when noshowfooter=false
By the way you have been a great help and i do appreciate it.