# Conditional help/logic

**URL:** <https://forum.kirupa.com/t/conditional-help-logic/329982>\
**Category:** Uncategorized\
**Created:** [November 14, 2012, 2:44am UTC](https://forum.kirupa.com/t/conditional-help-logic/329982 "2012-11-14T02:44:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wrzdzn](https://avatars.discourse-cdn.com/v4/letter/w/73ab20/32.png) [@wrzdzn](https://forum.kirupa.com/u/wrzdzn)\
**Post date:** [November 14, 2012, 2:44am UTC](https://forum.kirupa.com/t/conditional-help-logic/329982/1 "2012-11-14T02:44:31Z")

</div>

I have an easy question for someone.  
Have a scene that loops over and over until three objects are clicked  
and then the scene moves on.

How would I write a conditional statement for this" after the three objects are clicked the movie continues to the next scene.

I know the logic is not right and that you cannot say **if(red.clicked){//do this};**  
can anyone help please…this should be easy…

var blue:MovieClip = blue\_mc;  
var yellow:MovieClip = yellow\_mc;  
var red:MovieClip = red\_mc;

if(red.clicked){  
//do this  
gotoAndStop(‘here’);  
}
