If I have a table- similar to what you see below. How can I write a for loop that iterates between only columns 2-8 and would look at the input parameter and based on the condition specified in the for loop, replace the values in each row.
For example, if the input parameter is input=40, I would like to write a for loop that if it finds a value >= that input parameter in columns 2-8, then their values would be replaced by the input parameter. If the values are less than or equal to the input parameter, then the row values would remain the same.
If there are other methods to handle this, please feel free to share it. However, I want the output to populate all rows in specified columns.
