explain

  1. R

    Formula ...

    Can anyone help me to understand the the below formula in the simple form. cannot figure out what the formula is calculating and in what sequence. please if anyone can explain . Formula : State:=If(Cum(1)=1,0,If(EL,1,If(ES,-1,If((CL AND PREV=1) OR (CS AND PREV=-1),0,PREV)))); State=1...