# Just once

**URL:** <https://forum.kirupa.com/t/just-once/128844>\
**Category:** Uncategorized\
**Created:** [November 16, 2004, 8:28pm UTC](https://forum.kirupa.com/t/just-once/128844 "2004-11-16T20:28:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![VoS](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@VoS](https://forum.kirupa.com/u/VoS)\
**Post date:** [November 16, 2004, 8:28pm UTC](https://forum.kirupa.com/t/just-once/128844/1 "2004-11-16T20:28:38Z")

</div>

whats the best way to make a statement run just once?  
at the begining of my movie i have a few default values i wish to be set, but only the 1st time thru, i have done this before by doing something like this

```auto
xxx=xxx+1
if(xxx==1){
///some stuff here

}

```

but this no longer seems to work with AS2.0 since it produces a NaN error  
any help appreciated , thanks
