# If/else make image appear

**URL:** <https://forum.kirupa.com/t/if-else-make-image-appear/227104>\
**Category:** Uncategorized\
**Created:** [May 27, 2007, 2:12am UTC](https://forum.kirupa.com/t/if-else-make-image-appear/227104 "2007-05-27T02:12:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maora](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@Maora](https://forum.kirupa.com/u/Maora)\
**Post date:** [May 27, 2007, 2:12am UTC](https://forum.kirupa.com/t/if-else-make-image-appear/227104/1 "2007-05-27T02:12:25Z")

</div>

I’m completely new to Flash and Kirupa has been absolutely lovely help wise. And I’ve checked elsewhere and just can’t seem to find what I need to do. I’m pretty sure my code is wrong so if anyone could oblige I would be most pleased.

Some background info: I’m doing a combination type game where there are four symbols - circle, square, traingle and diamond. And there are 3 slots to put the shapes in, and depending what order you put them a different animal appears on the screen. So for instance Circle + Square + Triangle = Rabbit

I’m trying to do all this in if/else statements. And yes it must be in if/else statements.

CST\_mc is the picture of the rabbit. It’s sitting on the stage and I’ve made it invisible. Circle (icirc1\_mc) square (isqua1\_mc) and triangle (itri3\_mc) are on the side in that order.

I’ve rephrased what I want to do “if circle1, square2 and triangle3 are visible show bunny  
else do nothing.” hopefully that makes better sense. I tried so many ways I’m just completely frustrated ;.;

```auto
CST_mc._alpha = 0;

if ((icirc1_mc == top) && (isqua2_mc == mid) && (itri3_mc == bottom)){
   CST_mc._alpha = 100;
  
} 

```

Any help is appreciated.
