$txtchck = sprintf('verng2,verng2_opn,intnr_1');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(",",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
if ($verng2 == 2) {
    
        saveVar(sprintf('vernr_1="%s"',$verng2_opn));
    
    } else {
 
       saveVar(sprintf('vernr_1="%s"',$intnr_1));       
        
        }
