actionscript 3 - Is this statement about the following condition correct? -
look @ code:
var a:number = 1; var b:string = "hello"; if (a == 1 && b == "goodbye") { trace("options , b"); }
the book reading says: "in example, test evaluate true, because 1 of 2 conditions (the first) true. result, “option or b” traced."
isn't above statement incorrect? if statement me reads "if 1 , b goodbye output it"
you correct , book reading wrong. eric comments should || in code, indicated text result should "option or b" (the code wrong here well...).
/az
Comments
Post a Comment