Hello,

I wanted to know is there any efficient way of putting the below check in a template / vector ??. I've the below data structure.

Stats_T stat;
ConfigData CfgData_1;
// like CfgData_2, CfgData_3 etc.,

Inside a class: I'm doing
Code:
                 if ((stat.percentage1) >=  ((CfgData_1.th3) /100))
                {
                   // do some action
                }
                if ( (stat.percentage1) >=  
                     ((CfgData_1.th2) /100) &&  (stat.percentage1) <=  ((CfgData_1.th3) /100) 
                   )
                {
                    // do some action
                }
                if ( (stat.percentage1) >=  
                     ((CfgData_1.th1)/100) &&   (stat.percentage1) <=  ((CfgData_1.th2)/100) 
                   )
                {
                     //do some action
                }
Basically i wanted to know the ranging checking ?