Edit Panels from Script

Hi, is it possible to do this, the panels are in before and after states.

ps. should probably add a bool toggle input as well

c# edit panel
c# edit panel.gh (4.4 KB)

This is a rough attempt. You should be able to tweak it.

Thanks for this, Im pretty new to C# so I dont really know the GH script, are you able to help out with the Action input, to be able to decide to Replace, Insert or Remove an index to the list.