How to create a custom blueprint node with a variable number of exec pins?

I think this will help. https://www.gamedev.net/tutorials/programming/engines-and-middleware/improving-ue4-blueprint-usability-with-custom-nodes-r5694/