if([] == false){ // this code runs } if( [] ) { // this code also runs } if([] == true){ // this code doesn't run }