hi
i would simplify my formula with assign function, but it doesnt work.
my good formula :
if(n > 25, n*bc*switch(r, 1, .2, 2, .18, 3, .14, 4, .12, 5, .1, 6, .08, 7, .07, 8, .06, 9, .05, 0) + (100*pow(((n*10)/100)/r,0.125)/1),n*bc*switch(r, 1, .2, 2, .18, 3, .14, 4, .12, 0) + (100*pow(((n*10)/100)/r,0.125)/1))
it work good
and with assign function :
assign("bonus",n*bc)
assign("ptbase",(100*pow(((n*10)/100)/r,0.125)/1))
if(n > 25, bonus*assign("pourcent",switch(r, 1, .2, 2, .18, 3, .14, 4, .12, 5, .1, 6, .08, 7, .07, 8, .06, 9, .05, 0)) + ptbase,bonus*assign("pourcent",switch(r, 1, .2, 2, .18, 3, .14, 4, .12, 0)) + ptbase)
is it good ?
i have this message into the test point area
thx