New script statement "switch" does not work with strings. It seem not to work at all, not comparing properly with string value, nor string pointer:
Code: Adventure Game Studio
Above script always displays "-1".
Further development of AGS Editor
To be fair, switch doesn't work with strings either in C / C++, so it's not particularly expected to do so in AGS either.
But that's odd because in your above example, comparing string_test to string_test yields false.There is another bug that local variables do not work in switch: