need help with if statement.

james234:
okay so basically im using arduino and processing, what i have to do is basically when the values change for example in the code above the if statement it says ((result1 > 30)) now what can i do to write the code so if the value goes over 30 then play the movie?

Well you've already got the if statement there so you're not asking how to write that. Are you asking what command starts the movie? What are you using to play the movie. Does the command at the end of setup (myMovie.play()) play the movie? If so, then that's the command you put in the if statement.

Don't you think that what program or hardware or whatever is playing this movie would be a pretty critical piece of information to give us?