Questions tagged [switch-statement]
The switch-statement tag has no summary.
1 questions from the last 7 days
-2
votes
2
answers
65
views
Do GML switch-case statements perform worse than function tables?
The reason I wanted to ask is because of some code from Undertale that is responsible for choosing which dialogue set to use. It works something like this:
switch (id) {
case 0:
msg[0] = &...