Hi there! I'm trying to create a script that will generate Formula columns based on if a Column Name contains the right keyword. I think I'm misusing the way lists translate strings into other functions. Currently using JMP 17
Ptable = Current Data Table ();
col list = Ptable << Get Column Names(String);
if(debug == 1, Print(col list));
For(i=1, i<ncols(Ptable), i++,
If( Contains( col list[i], "Pressure"),
New Column("Column", Numeric, "Continuous", Format("Best", 12), Set Selected);
Column("Column") << Set Formula(
((15 / (0.016 * /*###*/Num( :Resistance[1] ) /*###*/)) * Num( Column(col list[i]))
-3.75) * 6.89476);
Column("Column") << Set Name(col list[i] + " (kPa)");
)
);