This script works.
dt << New Column( "FrontPeak",
"numeric",
"continuous",
setFormula(
If( :DISPENSESPEED == 1550,
Maximum(
:R029,
:R030,
:R031,
:R032,
:R033,
:R034,
:R035,
:R036,
:R037,
:R038
) * 1000,
.
)
)
);
However it would be nice to be able to be able to specify columns :R029 to :R038 or what ever number of columns.
Like the excel
=AVERAGE(A1:G1)