I’m pretty sure there’s a better way to write multiple condition if statements and thier result - but I can’t remember the term/method so I can’t find the scripting reference.
I want to optimize something that looks like this for example:
if(playerLocation == there){
moustache = long;
}
if(playerLocation == here){
moustache = short;
}
if(playerLocation == inATree){
moustache = GODLY;
}
if(playerLocation == inAHouse){
moustache = whatMoustache;
}
If anyone can point me in the right direction that would be moustache appreciated.
I’m trying to optimize my code now