tsql - Evaluate Equation from String -


i have string stored in table 2 logic gates looks 1*((cubl>1)*((difl>1)*1)).

i have been able replace text values different table i.e. 1*((1500>1)*((0>1)*1)). issue having being able evaluate equations between brackets. following list of steps believe needed.

1*((cubl>1)*((difl>1)*1)) -> 1*((1500>1)*((0>1)*1)) 1*((1500>1)*((0>1)*1)) -> 1*(1*(0*1)) 1*(1*(0*1)) -> 1*(1*0) 1*(1*0) -> 1*0 = 0 


Comments