why if and not work crrect ? o_O

 

hi  i have a part of long script  in this script  i have created a edit box  and  i want  change backgroung color  green/red  when some percent appear in the edit box  i write  a function for do that

void _MinimiDiCorrleZione(double Percz,string SymbO,string Correlato){

if(SymbO == "AUDUSD"){
    if(Percz>=0.4){
               ObjectSetInteger(0,"DiffPercents",OBJPROP_BGCOLOR,clrPaleGreen ); 
             }else{
             ObjectSetInteger(0,"DiffPercents",OBJPROP_BGCOLOR,clrTomato);
             }
             
 }            
}

or 
 if( (SymbO ==  "AUDUSD")&& (Correlato == "NZDUSD" )&& (Percz >= 0.4)) {
           ObjectSetInteger(0, "DiffPercents", OBJPROP_BGCOLOR, clrGreen);
       } else {
           ObjectSetInteger(0, "DiffPercents", OBJPROP_BGCOLOR, clrRed);
       }

but both with the first and with the second  code not  work  with first not appear nothing , with  second  remanin always red  why  ??  anyone look some error in code ??  thanks

 
faustf: the second  code not  work  with first not appear nothing , with  second  remanin always red  why  ??  anyone look some error in code ?? 
 if( (SymbO ==  "AUDUSD")&& (Correlato == "NZDUSD" 

When with the symbol be "AUDUSD" and "NZDUSD" at the same time?

 
in
SymbO 

i insert Symbol()

and

Correlato 

i insert by hand  when i attach EA