I suggest using $iif.
on the load,
$iif(!$dialog(dname),Away sys,$style(2) Away sys): dialog -m dname dname
and
$iif(%variable,$v1,something else)