I found a bug in the Switch composite. I always define the int values of enums so that I can insert different values later without having to re-index everything. e.g.
However, the Switch composite assumes that the int values are 0, 1, 2. Thus current >= outConnections.Count in line 71 is true and an error is returned rendering the Switch inoperable.
You are right. I have just modified Switch to work correctly in this case. Please find the modified node attached and let me know if it works for you. Thanks! 🙂