Added semi-colon 'then' after your conditional