if(var1 == var2) // Perform action else // Perform different action
if(var1 == var2) // Perform action else { // Perform different action }