Make code more efficient

Hello

On start up I make 6 objects “_visible = false;”

So when I click each of these 6 items corresponding buttons I do not want 6 lines of code every time turning 5 objects to “false” and one object to “true”

So is there a more effective method of coding than going

on (release) {
a= false;
b=false;
c=false;
d=false;
e=false;
f=true’
}