expressions with conditionals

cleaned up alert and removed extra parenthesis