Rookie mistake - indentation does NOT make the line part of the 'then' clause