Corrcted if statement. Square brackets are used for text string comparison and double rounded brackets are used for numerical calculation