This ist not possible. You have to compare these values in PHP not in your template.
A short example:
<?php
$access_level = get_access_level($_SERVER[PHP_AUTH_USER], $user_id);
if ($access_level == $admin_level)
{
// if in aclev == admin_level the template will output the admin-links
$tmpl->setVar(admin, 1);
}
?>
<tmpl_if name=admin> <!-- admin links -->
(...)
<tmpl_else> <!-- user links -->
(...)
</tmpl_if>
It is not possible to compare variables with TMPL_IF. TMPL_IF can compare one variable with a constant like: "1", "97", "admin", "user". Comparing two variables is not possible.
Regards,
Claus