Announcements
Is there a maximum number of items you can have in a switch statement? Looks like I might have approx 25 is this too many? does it affect performance?
@vffdd The documentation does not specify any limit. Also there no performance issues because only one branch of the Switch is going to be executed. But....
...having 25 branches doesn't seem very good design let alone maintainability of the code!
I agree with @CNT , perhaps there's a better way to do it? Care to share some specifics and maybe we can help?
Yeah you are right ! I need to have a think about it myself to see if a more efficient way 🙂 I'll come back to you as will prob need suggestions but going to work on it myself first.. thanks I'll leave this open for the moment if that's ok
@vffdd Let me know if you need any help to redesign!
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 542 Most Valuable Professional
Haque 206
Kalathiya 201 Super User 2026 Season 1