Thanks, I coded the first one and I was asked to change to the second by lead programmer (according to him that shoul simplify my code?!) I coded like that because as you said vehicle.Company is...
Type: Posts; User: javaDruide
Thanks, I coded the first one and I was asked to change to the second by lead programmer (according to him that shoul simplify my code?!) I coded like that because as you said vehicle.Company is...
I'll try to simplify:
if(vehicle.Company==G){
if( vehicle.Collisions==-1 and (vehicle.Cost==null or vehicle.CurrentValue==null)){
throwError(GMessage)
What is the most efficient code?
Writen like this:
if(vehicle.Branch.UWCompanyCode==typekey.UWCompanyCode.TC_CGIC){