# '} else {' issues

**URL:** <https://forum.kirupa.com/t/else-issues/250643>\
**Category:** flash\
**Created:** [January 31, 2008, 11:37am UTC](https://forum.kirupa.com/t/else-issues/250643 "2008-01-31T11:37:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stillbeating](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@stillbeating](https://forum.kirupa.com/u/stillbeating)\
**Post date:** [January 31, 2008, 11:37am UTC](https://forum.kirupa.com/t/else-issues/250643/1 "2008-01-31T11:37:00Z")

</div>

hi there, im having an issue with a little interactive character im making.  
i want it so when you click him he says “quit it” which he already does, but i want it so when you click him 5 times he says "your willing-ness to touch me is somewhat concerning, my problem is; he’ll try to say both at the same.

this is the code i have on the character

on (press) {  
\_root.pokes = \_root.pokes+1;  
if (\_root.pokes == 5) {  
\_root.heath.gotoAndPlay(7);  
if (\_root.cursor\_name == 2) {  
\_root.cursor.gotoAndPlay(5);  
\_root.heath.gotoAndPlay(2);  
}  
}

and if i put a code like this in;

on (press) {  
\_root.pokes = \_root.pokes+1;  
if (\_root.pokes == 5) {  
\_root.heath.gotoAndPlay(7);  
} else {  
if (\_root.cursor\_name == 2) {  
\_root.cursor.gotoAndPlay(5);  
\_root.heath.gotoAndPlay(2);  
}  
}

i get errors like;  
Statement block must be terminated by ‘}’  
Syntax error.

so, yeah, im stumped.  
your help would be greatly appreciated.  
thanks.
