# Autoformat problem

**URL:** <https://forum.kirupa.com/t/autoformat-problem/321033>\
**Category:** Uncategorized\
**Created:** [April 8, 2011, 10:47am UTC](https://forum.kirupa.com/t/autoformat-problem/321033 "2011-04-08T10:47:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![12abhi12](https://avatars.discourse-cdn.com/v4/letter/1/9f8e36/32.png) [@12abhi12](https://forum.kirupa.com/u/12abhi12)\
**Post date:** [April 8, 2011, 10:47am UTC](https://forum.kirupa.com/t/autoformat-problem/321033/1 "2011-04-08T10:47:04Z")

</div>

I have a code with fscommand in an if statement.

```auto

if(condition){
     fscommand();
}

```

Upon autoformat the fscommand just gets pushed outside the if statement for no reason.

```auto

if(condition){
}
fscommand();

```

Any reason this occurs?

Also if there is a statement after the fscommand nothing happens on autoformat

```auto

if(condition){
     fscommand();
     nil = nil;
}

```
