Operator Name
&& And
|| Or
! Not
package{
import flash.display.Sprite;
publicclass Main extends Sprite{
public function Main(){
var sUsername:String = "Joe";
var sPassword:String = "oass";
if (sUsername == "Joey"){
if (sPassword == "isAwesome"){
trace("That is the correct username and password.");
}
}
if (sUsername == "Joey" && sPassword == "isAwesome"){
trace("That is the correct username and password.");
}
}
}
}