# Define variable, inputext, range HELP!

**URL:** https://forum.kirupa.com/t/define-variable-inputext-range-help/124096
**Category:** Uncategorized
**Created:** [September 29, 2004, 11:52pm UTC](https://forum.kirupa.com/t/define-variable-inputext-range-help/124096 "2004-09-29T23:52:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![humbleches](https://avatars.discourse-cdn.com/v4/letter/h/6de8d8/32.png) [@humbleches](https://forum.kirupa.com/u/humbleches)
#### Post date: [September 29, 2004, 11:52pm UTC](https://forum.kirupa.com/t/define-variable-inputext-range-help/124096/1 "2004-09-29T23:52:32Z")

</div>

I want to create a movie with an input text box. I want it so people type an amount in the box and depending on what number in the box is, upon clicking a button the movie goes to a certian frame.

The instance name of my text box is

inputAmount

I want it so that when I type in a number that is less than five it goes to and plays frame 52… if it is greater than five it goes to frame 2 and plays.

What should the code be and where should it be placed (ie if I define a variable should that be on the button or in the actions layer and what about the rest of it (if then???) Should that be on the button??)
