# If statement using \_visible

**URL:** <https://forum.kirupa.com/t/if-statement-using--visible/297673>\
**Category:** flash\
**Created:** [October 7, 2009, 12:44am UTC](https://forum.kirupa.com/t/if-statement-using--visible/297673 "2009-10-07T00:44:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zonferno](https://avatars.discourse-cdn.com/v4/letter/z/ecccb3/32.png) [@zonferno](https://forum.kirupa.com/u/zonferno)\
**Post date:** [October 7, 2009, 12:44am UTC](https://forum.kirupa.com/t/if-statement-using--visible/297673/1 "2009-10-07T00:44:15Z")

</div>

Hey,  
I want to make the timeline go to the next frame (ie gotoAndStop) only if two button instances are invisible. For the buttons I have scripted an on(release) to make them invisible, but I don’t know how to use the if function to make my animation progress when they are both invisible.  
Help!
