For( i = 1, i <= N Items( allm ), i++,
m = allm[i];
name = "Peak Mass " || Char( m );
del = Current Data Table() << delete columns( Char( name ) );
(New Column( Char( name ), set formula( If( subtract(eval(m), 3) < :deltamass <= add(eval(m),3), :pctrelative, 0 ) ) ) ;
If( Contains( name, "Peak Mass 0" ),
del
) ; );
);
Help! I have tried like 5 things, and I can't get my variable to spit out it's numerical value into the column formula.