The engine now supports switch statements like in C. I don't feel like explaining switch statements right now for those unaware of what they are, so look them up.
Like in C, the switch expression and case labels must both be integers. The case labels must be integer constants, not constant expressions.
Maybe I should make it also work with strings. That would be useful.
EDIT 2/8/2013: It works with strings now.
Like in C, the switch expression and case labels must both be integers. The case labels must be integer constants, not constant expressions.
Maybe I should make it also work with strings. That would be useful.
EDIT 2/8/2013: It works with strings now.