Writing conditional assignment without using else.
In other words, creating a custom else if.
My guess is that the coder doesn't like using
keywords containing 's'.
And in this case expecting operators would be a sin. :)
In other words, creating a custom else if.
My guess is that the coder doesn't like using
keywords containing 's'.
And in this case expecting operators would be a sin. :)
while(true)
{
if(mainType == 7)
{
subType = 4;
break;
}
if(mainType == 9)
{
subType = 6;
break;
}
if(mainType == 11)
{
subType = 9;
break;
}
break;
}Source
