Hi,
I am beginner in JSL scripting. I need help with the following error.
"not enough arguments in access or evaluation of 'For' "
In my code below, I am trying to delete columns that contain certain strings in their column name. I'm not sure where I am making the mistake.
dt = Current Data Table();
col_list = dt << get column names(string);
for(i = 1; i>= N Items (col_list), i++,
If(
Contains(col_list[i], "MTR") | Contains(col_list[i], "AUTO") | Contains(col_list[i], "ProcessCon") | Contains(col_list[i], "Macro") | Contains(col_list[i], "OTH_SP") ),
Remove from(col_list, i)
)
);
dt << delete columns( col_list );
Please let me know. Thank you.