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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -