# Sequential button availability

**URL:** <https://forum.kirupa.com/t/sequential-button-availability/42383>\
**Category:** Uncategorized\
**Created:** [February 8, 2004, 6:54pm UTC](https://forum.kirupa.com/t/sequential-button-availability/42383 "2004-02-08T18:54:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![seanc](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@seanc](https://forum.kirupa.com/u/seanc)\
**Post date:** [February 8, 2004, 6:54pm UTC](https://forum.kirupa.com/t/sequential-button-availability/42383/1 "2004-02-08T18:54:07Z")

</div>

how do i set up the script so that the user has to click one button before another button will operate?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 8, 2004, 6:59pm UTC](https://forum.kirupa.com/t/sequential-button-availability/42383/2 "2004-02-08T18:59:20Z")

</div>

Something like this:

```auto

operate = false;
firstbutton.onRelease = function(){
operate = true;
}
secondbutton.onRelease = function(){
if(operate){
trace("You clicked the first button before pressing this one. Good boy !")
} else {
trace("Click the first button before clicking this one !");
}
}

```
