# Make code more efficient

**URL:** <https://forum.kirupa.com/t/make-code-more-efficient/69277>\
**Category:** Uncategorized\
**Created:** [November 2, 2004, 11:25pm UTC](https://forum.kirupa.com/t/make-code-more-efficient/69277 "2004-11-02T23:25:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandman9](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Sandman9](https://forum.kirupa.com/u/Sandman9)\
**Post date:** [November 2, 2004, 11:25pm UTC](https://forum.kirupa.com/t/make-code-more-efficient/69277/1 "2004-11-02T23:25:53Z")

</div>

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’  
}
