expressions with conditionals

created a alert for user to see results of calculation