# How to use "boolen"?

**URL:** <https://forum.kirupa.com/t/how-to-use-boolen/271259>\
**Category:** Uncategorized\
**Created:** [September 20, 2008, 12:53pm UTC](https://forum.kirupa.com/t/how-to-use-boolen/271259 "2008-09-20T12:53:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gencoglu](https://avatars.discourse-cdn.com/v4/letter/g/898d66/32.png) [@gencoglu](https://forum.kirupa.com/u/gencoglu)\
**Post date:** [September 20, 2008, 12:53pm UTC](https://forum.kirupa.com/t/how-to-use-boolen/271259/1 "2008-09-20T12:53:35Z")

</div>

Hi, I m tring to learn how to use a “boolean” in flash so I created a car MC  
it moves and hits a wall then I want my car MC to change its direction to another way  
and keep moving(say backward)  
but it seems there are some mistake to be fixed…  
Thanks for any help.

```php

 
onClipEvent(enterFrame)
{
    _root.mcar._x+=3;
    if(_root.mcar.hitTest(_root.wall))
    {
        _root.mcar._rotation+=60;
        dir_back=true;
    }
    if(dir_back)
    {
        _root.mcar._x-=3;
 
        }
 
}

```
