# If (man.hitTest(none)){ Null

**URL:** <https://forum.kirupa.com/t/if-man-hittest-none-null/202574>\
**Category:** Uncategorized\
**Created:** [October 2, 2006, 8:38pm UTC](https://forum.kirupa.com/t/if-man-hittest-none-null/202574 "2006-10-02T20:38:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brndn](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@brndn](https://forum.kirupa.com/u/brndn)\
**Post date:** [October 2, 2006, 8:38pm UTC](https://forum.kirupa.com/t/if-man-hittest-none-null/202574/1 "2006-10-02T20:38:59Z")

</div>

Hi is there a simple way to detect if a hit test is null?

I am trying to make something happen if the hit test is called and something else when it does not exist.

```auto
    if (man.hitTest(mostache.dude)){
            _root.mostache._x = man._x;
            Caption_Create(true, "HELLO I AM BLAH", this);
                                    }
                                if (man.hitTest(none)){            
                                Caption_Create(false);

```

cheers :rd:
