# Watch

**URL:** <https://forum.kirupa.com/t/watch/126516>\
**Category:** Uncategorized\
**Created:** [October 24, 2004, 10:26pm UTC](https://forum.kirupa.com/t/watch/126516 "2004-10-24T22:26:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phlashman](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@Phlashman](https://forum.kirupa.com/u/Phlashman)\
**Post date:** [October 24, 2004, 10:26pm UTC](https://forum.kirupa.com/t/watch/126516/1 "2004-10-24T22:26:28Z")

</div>

Sorry for being so bland, but how would I use the watch method.  
Let’s say I have a variable that becomes true when a key is pressed, and false when it is release. Let’s name the variable key, and the function go. This is my script:

```auto
 watch ("key",go) 

```

.  
Should I put anything before watch? If so, what.

Okay, now lets say that function go has a parameter, where. Would the code be like this?:

```auto
 watch ("key", go, "NYC")
//or
watch("key", go, ["NYC"]) 

```

or what?  
Thanks for your help.
