I have the following code…
var firstPlay = 1;
if (firstPlay == 1) {
firstPlay();
}
When I remove the if statement and just put
firstPlay();
Then it works but with the if statement it doesn’t.
Did I make a typo? If not how can I go about debugging this problem?
You are setting the variable
firstPlayto the value 1, you can’t run a value… use different names for your variables.Such as: