This runs in as3, and javascript. Why? I know how && and || work, but a list? is this as3 specific? Is this in other languages? I'm a mouth breathing PHP/AS2 programmer. Or did everyone already know this and I'm a tool for not reading documentation properly?
AS3
if (true, true, true) {
trace("true?")
}//result - "true?" traced
Javascript
if (true, true, true) {
alert("true?")
}//result - "true?" alert message popped up
if(false, false, false){
alert("true?")
}
else{alert("false")}
//result - "false" alert message popped up
if(true, false, false){
alert("true?")
}
else{
alert("false")
}
//result - "false" alert message popped up