Animate Code - "and"
Hi there.
I am looking for guidance on how to inset a "and" function into my code in Animate.
I am a student at [removed by moderator] and need this information for a project.
A simple google search returned no results.
Here is my code: (The text in red is the focused code where i need the and function)
var randomNumber = Math.floor(Math.random() * 10) + 1;
var Highchoice = false;
this.Rnumber.text = "";
this.message.text = "Guess how high or low the number will be!";
var _this = this;
function chooseNumber() {
randomNumber = Math.floor(Math.random() * 10) + 1;
_this.Rnumber.text = randomNumber;
}
function checkNumber(){
if(randomNumber>5){
_this.message.text = "more than 5";
} else if (randomNumber<5){
_this.message.text = "less than 5";
}
}
chooseNumber();
function riwr(){
if(randomNumber>5)
}
_this.chooser.on('click', function () {
chooseNumber();
checkNumber();
});
_this.HigherThan5.on('click', function (){
Highchoice = true;
console.log(Highchoice);
})
_this.LowerThan5.on('click', function (){
Highchoice = false;
})
*/
