Python function to alter loop_number

Solved676 viewsCSS Questionspython
0

Hi, I would like to alter the loop_number of “loop through this list…”.

For example I would like to “limit” the range of looped device parameter values to the first 16 parameters rather than all parameters.

It works by entering a list into the custom code of the loop like [1, 2, 3, 4, 5…] but gives me errors if there are less parameters than in the list.

What kind of python functions are available and how would I have to enter them ?

Thank you for any hint and best regards, mj

JohnC Selected answer as best
1

You could use a Condition like “if loop_number less than 16” so that it won’t trigger Actions when loop_number is greater or equal than 16.

JohnC Selected answer as best
0

Hi Glenn, sometimes I shouldn’t look/think too far ;-)… works ! Thank you very much. Best Regards, mj

MartinJ Answered question