# Conditional Statement

**URL:** <https://forum.kirupa.com/t/conditional-statement/267347>\
**Category:** Uncategorized\
**Created:** [July 31, 2008, 1:12am UTC](https://forum.kirupa.com/t/conditional-statement/267347 "2008-07-31T01:12:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkhippothewis](https://avatars.discourse-cdn.com/v4/letter/d/73ab20/32.png) [@darkhippothewis](https://forum.kirupa.com/u/darkhippothewis)\
**Post date:** [July 31, 2008, 1:12am UTC](https://forum.kirupa.com/t/conditional-statement/267347/1 "2008-07-31T01:12:22Z")

</div>

Hello,

I’m currently working on a puzzle.

The objective of the puzzle is to place the numbers in  
order from 1 - 10

Once the puzzle is complete you’re taken to a specific frame.

However, I want to be able to go to 1 of 2 frames  
depending on how long it takes to complete the puzzle.

Each number has the following code:

on (press) {  
startDrag(this, true);  
}  
on (release) {  
stopDrag();  
if (this.\_droptarget == “/box1”) {  
\_root.corSound.start();  
\_root.count = \_root.count+1;  
\_root.cnt = \_root.count;  
this.\_visible = false;  
tellTarget ("/box1") {  
gotoAndStop(“pic”);  
\_alpha = 100;  
}  
if (\_root.count \>= 10) {  
tellTarget ("/") {  
\_root.gotoAndStop(4);  
}  
}  
} else {  
\_root.wrSound.start();  
}  
}
