1
2
3
4
5
2
3
4
5
switch(variable) {
	case 1: printf("1\n"); break;
	case 2: printf("2\n"); break;
	case default: printf("Not one or two\b"); break;
}
Scripts
Is there a switch like function in Lua?
Is there a switch like function in Lua?
1

switch(variable) {
	case 1: printf("1\n"); break;
	case 2: printf("2\n"); break;
	case default: printf("Not one or two\b"); break;
}
1
