# Use of !this

**URL:** https://forum.kirupa.com/t/use-of-this/240718
**Category:** Uncategorized
**Created:** [October 5, 2007, 10:38am UTC](https://forum.kirupa.com/t/use-of-this/240718 "2007-10-05T10:38:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![juliecat](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@juliecat](https://forum.kirupa.com/u/juliecat)
#### Post date: [October 5, 2007, 10:38am UTC](https://forum.kirupa.com/t/use-of-this/240718/1 "2007-10-05T10:38:25Z")

</div>

Dear people, been given this code below which evaluates whether an on press has occurred. It works fine but I’m perplexed by the use of (!this.clicked) why the use of !?  
Why doesn’t a simple (this.clicked) evaluation work in this situation? What am I missing here guys.:hair:

```auto
  target1.onPress = function() {
        if (!this.clicked) {
            this.clicked = true;
         
            score_track =+ 1
            
            this.gotoAndPlay(2);
        }
        
    }

```

many thanks  
julie  
x
