An excel question (probably not the best place to ask)
I have an MS Excel formula that I am trying to ‘convert’ into PHP using IF/Else statements – is there any Excel gurus that could write the following line into pseudocode?
=IF(C10=0,IF(ABS(E2+C2)<0.51,"balanced",IF(ABS(E2+C2)<1.34,"slightly greater",IF(ABS(E2)<2.67,"slightly greater",IF(ABS(C2)>1.17,"slightly greater","significantly greater")))),IF(C10<1.18,"Low",IF(C10<2.68,IF(ABS(E2+C2)>0.51,IF(ABS(E2)>1.18,"High","Moderate"),"Moderate"),"High")))
I didn’t change the conditions, assuming you know how to do that, but I converted the nesting for you