if (5 == 4) { //code you want to run if the condition is true } else { // code you want to run if the condition is false }