# Combobox help

**URL:** <https://forum.kirupa.com/t/combobox-help/321472>\
**Category:** Uncategorized\
**Created:** [April 20, 2011, 6:42pm UTC](https://forum.kirupa.com/t/combobox-help/321472 "2011-04-20T18:42:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mister\_Bob](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@Mister\_Bob](https://forum.kirupa.com/u/Mister_Bob)\
**Post date:** [April 20, 2011, 6:42pm UTC](https://forum.kirupa.com/t/combobox-help/321472/1 "2011-04-20T18:42:32Z")

</div>

The following code isnt working for me, it works for the second but not the first. Any help will be much appreciated.

```auto
function gravestone_check1() {
        if (gravestonecb.getValue() == 1) {
            _global.gravestone1 = 1;
            _level0.gravestone1._visible = true;
            _level0.gravestone2._visible = false;
        } else {
             _global.gravestone1 = 0;
            _global.gravestone2 = 0;
            _level0.gravestone1._visible = false;
            _level0.gravestone2._visible = false;
        }
}

function gravestone_check2() {
        if (gravestonecb.getValue() == 2) {
            _global.gravestone2 = 1;
                    _level0.gravestone1._visible = false;
            _level0.gravestone2._visible = true;
        } else {
             _global.gravestone1 = 0;
            _global.gravestone2 = 0;
                    _level0.gravestone1._visible = false;
            _level0.gravestone2._visible = false;
        }
}

setInterval(gravestone_check1, 10);
setInterval(gravestone_check2, 10);

```

Thanks

Andy
