# If Statements?

**URL:** <https://forum.kirupa.com/t/if-statements/114031>\
**Category:** Uncategorized\
**Created:** [June 23, 2004, 11:46pm UTC](https://forum.kirupa.com/t/if-statements/114031 "2004-06-23T23:46:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BobbyDouglas](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@BobbyDouglas](https://forum.kirupa.com/u/BobbyDouglas)\
**Post date:** [June 23, 2004, 11:46pm UTC](https://forum.kirupa.com/t/if-statements/114031/1 "2004-06-23T23:46:50Z")

</div>

How would I setup this scenario:

I have a text, and when released, it needs to set the variable var1 = to 1. And then loadMovie.

The movie that will play needs to have a script that says if var=1 then display this button, else display something else.

How would I go about doing this? Also, would I have to specify the var1 to = something before hand, that way it has some value?

The finished result will have a navigation menu that has 4 different menu choices. I can click Movie 1, Movie 2, Movie 3, and Play All. If I click Movie 1, it will load the external Movie 1. If I click Play All, it will load Movie 1 as well.

However, Movie 1 will have a script that says, if var1=1 (meaning the Play All button was clicked), then when the movie is finished, display the Next button, which will be a button that loads the Movie 2 externally. If the var1 is not equal to 1 (meaning the Play All button was not clicked), then have it display something else.

Btw, Movie 1 will be the same as #2 and #3.

---

<div class="post-metadata">

**Author:** ![Prophet](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@Prophet](https://forum.kirupa.com/u/Prophet)\
**Post date:** [August 20, 2004, 11:07pm UTC](https://forum.kirupa.com/t/if-statements/114031/2 "2004-08-20T23:07:52Z")

</div>

netime - glad i could help 😉

Prophet.
