# Checkbox combination

**URL:** <https://forum.kirupa.com/t/checkbox-combination/278713>\
**Category:** flash\
**Created:** [January 4, 2009, 10:18am UTC](https://forum.kirupa.com/t/checkbox-combination/278713 "2009-01-04T10:18:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bungaloo](https://avatars.discourse-cdn.com/v4/letter/b/c68b51/32.png) [@bungaloo](https://forum.kirupa.com/u/bungaloo)\
**Post date:** [January 4, 2009, 10:18am UTC](https://forum.kirupa.com/t/checkbox-combination/278713/1 "2009-01-04T10:18:19Z")

</div>

I have a small problem that probably can be fixed easy. I have this form with many check boxes and when some are checked a text will appear in a movieclip. The code is like this:

```auto

Btn.onRelease = function() {

    if (checkb1.selected && checkb2.selected) {
        Mclip1.gotoAndStop(0);
        Mclip2.gotoAndStop(2);
        
    }
       
        else if (checkb3.selected) {
        Mclip1.gotoAndStop(0;
        Mclip2.gotoAndStop(3);
        }

else if (checkb1.selected && checkb2.selected && checkb3.selected) {
        Mclip1.gotoAndStop(0;
        Mclip2.gotoAndStop(4);
        }

```

Simple but when I add more combinations it wont work. For example when I have checkb1.selected && checkb3.selected && checkb5.selected it will react as if I checked checkb1 and checkb3.
