Hello,
I’m trying to make multiple comparisons in the same line and it’s not working. Please any help would be greatly appreciated. I’m trying to get the Try Again because of the comparison between the minutes and seconds at the end but it’s not reading that part of the line.
Here is the code:
var minutes:Number = 40;
var seconds:Number = 30;
var turns:Number = 2;
var score:Number = 77;
var times:Number = 3;
if ((turns<=3) && ((score>=75) || ((number<=2)) && ((minutes<30) || (seconds<30)))){
trace(“You Win the Game!”);
} else {
trace(“Try Again!”);
}
/* output:
You Win the Game!
*/