# Another "if" statement inside an if statement?

**URL:** <https://forum.kirupa.com/t/another-if-statement-inside-an-if-statement/314255>\
**Category:** Uncategorized\
**Created:** [September 22, 2010, 10:52pm UTC](https://forum.kirupa.com/t/another-if-statement-inside-an-if-statement/314255 "2010-09-22T22:52:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aeson](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@aeson](https://forum.kirupa.com/u/aeson)\
**Post date:** [September 22, 2010, 10:52pm UTC](https://forum.kirupa.com/t/another-if-statement-inside-an-if-statement/314255/1 "2010-09-22T22:52:51Z")

</div>

Hi Everyone,

I have a script which is giving me a lot of trouble since I have no idea how to write another “if statement” inside another if-else statement. I keep getting errors, I guess I don’t know where to put the braces exactly…

example:  
[COLOR=#b1b100]if[/COLOR][COLOR=#66cc66]([/COLOR]bla == bla[COLOR=#66cc66])[/COLOR] [COLOR=#66cc66]{[/COLOR]  
[LEFT] \<------------how would I write another [COLOR=#b1b100]if[/COLOR] statement here?  
[COLOR=#66cc66]}[/COLOR][COLOR=#b1b100]else[/COLOR] [COLOR=#b1b100]if[/COLOR] [COLOR=#66cc66]([/COLOR]bla == bla[COLOR=#66cc66])[/COLOR][COLOR=#66cc66]{[/COLOR]

[COLOR=#66cc66]}[/COLOR]  
[/LEFT]

thank you in advance,

Aeson
