How to optimize if statements - can't remember term

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 :slight_smile:

Thank you very much Fattie. I have looked up the term and found this which is very useful for anyone wanting more info on Switches