If I have a range of values I want to trigger a certain case using the switch statement, what is the syntax for that in game editor?
Like if I want the numbers 1 through 3 to be included in the first case, 4 through 20 in the second case, etc.
switch(variable)
{
case 1:
case 2:
case 3:
break;
default:
if(variable>=4 && variable<=20)
{
//
}
break;
}
Users browsing this forum: No registered users and 1 guest