if the variable book is "maths" then it will print as "Maths Book", following condition will execute
else if( book == "maths" ){ document.write("Maths Book"); }