if($temp_var1 == $temp_var2 and $temp_var2 == $temp_var3) {printf LOG"1";} if($temp_var2 != $temp_var1 and $temp_var3 == $temp_var2) {printf LOG"2";} if($temp_var2 eq $null and $temp_var3 eq $null) {printf LOG"3";} if($temp_var3 == $temp_var1 and $temp_var2 eq $null) {printf LOG"4";} if($temp_var1 != $temp_var2 and $temp_var3 eq $null) {printf LOG"6";} if($temp_var2 != $temp_var1 and $temp_var3 != $temp_var1) {printf LOG"5";} if($temp_var1 == $temp_var2 and $temp_var3 != $temp_var1) {printf LOG"5";} if($temp_var2 == $temp_var1 and $temp_var3 eq $null) {printf LOG"5";}