In the past, I don't think I was wording my questions carefully. This is the best way of asking. Basically, what can I use that acts like a bool, but has more than two options? Cause in my limited experience a bool allows only 2 options. but what if I need a script that has like 12 "if" statements all asking...
if ([Insert bool equivelant here] == 1)
{
Do_Something (1);
}
if ([Insert bool equivelant here] == 2)
{
Do_Something (2);
}
if ([Insert bool equivelant here] == 3)
{
Do_Something (3);
}
so on and so on...
In the past, I don't think I was wording my questions carefully. This is the best way of asking. Basically, what can I use that acts like a bool, but has more than two options? Cause in my limited experience a bool allows only 2 options. but what if I need a script that has like 12 "if" statements all asking...
if ([Insert bool equivelant here] == 1) { Do_Something (1); } if ([Insert bool equivelant here] == 2) { Do_Something (2); } if ([Insert bool equivelant here] == 3) { Do_Something (3); } so on and so on...
Share this post
Link to post