How to implement for each item in list block to extensions code

blocks (8)
the user will input a list of colors with a variable named colorlist
so my extension should pick this color list as input and in loop my code should use the item var and set as color of component or so on

so how can i make this block in code controls_forEach

StackOverflow knows almost everything

1 Like

worked

int index1 = 0;
for(Object x : colors ) {
array[index1] = (int)x; index1++;
}

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.