eopl15 q4: if statement